aboutsummaryrefslogtreecommitdiffstats
path: root/src/swarm/peer/keepalive.rs
Commit message (Collapse)AuthorAgeFilesLines
* swarm: a node whose store a set of events carriestv23 hours1-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | Such a node (Holding::carrying) holds an Automerge document with nothing in it, which nothing passes on, and its set is its document: * swarm::set passes the set on. Where it stands goes in the node's STATUSes as another kind's stamp, and a peer's is given to the set; what the set says besides goes as a SYNC's body; what the set took, of a peer or of the node itself, goes on to the node's other neighbours. What compares stamps for an Automerge document's sake is handed the node's own, and finds nothing to do; the Automerge sync isn't begun. * The node writes its own entry (AppState::mutate_set): what writes protocol data through a view writes to the members' entries as a tree, and what the node's own reads as after is put as its next entry, signed and passed on. Anything else is refused, and so is a write to an Automerge document as such. * An event the node writes (held::write) is offered to the set and passed on; a set lacks nothing of its store to put again. * The node's swarm is its store's, said at its start. A simulation: three such nodes of two parties register, and each holds the others' entries; events put on two of them reach all three, and they come to stand alike, the documents they hold beside empty.
* document: where a document stands, and a peer, is the document's to comparetv2 days1-16/+9
| | | | | | | | | | document::passing: a Mark, where a document stood, by which what changed since and the node's own units since are told (changed_since, own_since: the change publisher, the sync worker); and of where a peer says it stands, what the document lacks, whether the peer holds what the document held, a pull of what is lacking, and what it has counting as sent no more (lacking, peer_holds, pull, heard: the relay, keepalives). The published stamp gives its summary and its mark.
* roots: a joiner shakes hands again with a seed that says it's readytv9 days1-0/+2
| | | | | | | | | | | A seed that named no root, joining itself, names it once ready, but only from this build on: a 0.0.1 seed never shakes hands again, and its joiner waited for ever. scripts/wire-check hit that, d of this tree joining through c of 0.0.1, their handshake 6 ms before c was ready. So the joiner does its half too: where a seed it still waits for named none, a STATUS saying the seed became ready has it shake hands with the seed again (seed_ready), which then names its root.
* heads heard in announcementstv2026-11-061-2/+2
|
* heads heard in repliestv2026-11-061-1/+1
|
* heads heard forget senttv2026-11-061-0/+28
|
* one grace wait per peertv2026-11-061-1/+3
|
* reach sets boundedtv2026-11-061-5/+11
|
* round trips in treestv2026-11-051-1/+8
|
* hello again when heard fromtv2026-11-041-0/+6
| | | | | | While we wait for a peer's HELLO_REPLY, anything else that comes from it makes our HELLO go again at once, at most once a second, instead of when the backoff says.
* pull after gracetv2026-11-041-1/+1
| | | | | | | | Before pulling, a node waits one measured round trip to the announcer (1 s at most) and pulls only what is still missing. If the round trip isn't known yet, it pulls at once, as now. On the clean benchmark links the round trip is a few milliseconds, so those scenarios shouldn't change.
* announcements answered when lackingtv2026-11-041-2/+2
| | | | | | | A neighbour now answers an announcement only if it lacks some of the announced heads. Heads that merely differ are no longer enough, since they do while writes go on. The check reads the document, so it runs off the message consumer, as the pull check already does.
* replace eager links by treestv2026-11-031-8/+3
|
* measure 2-hop neighbourhoodtv2026-11-031-3/+10
|
* introduce eager linkstv2026-11-031-3/+8
|
* skip neighbours with our headstv2026-11-031-0/+1
|
* announcements answered only if heads differtv2026-11-031-0/+15
|
* peer worker sleeps until deadline, not fixed timetv2026-11-011-0/+10
|
* pong carries timetv2026-10-311-2/+5
|
* centralize call to topology_changetv2026-10-311-14/+10
|
* unify request_sync logictv2026-10-311-4/+1
|
* unify heard_from logictv2026-10-311-6/+28
|
* unify closing logictv2026-10-311-3/+3
|
* unify sync_on predicatetv2026-10-311-7/+2
|
* farewell means dormanttv2026-10-301-1/+9
|
* topology: introduce outbound memberstv2026-10-291-1/+6
|
* peers from member list start as unknowntv2026-10-281-2/+2
|
* get swarm RTT from pathstv2026-10-281-6/+9
|
* keepalive takes turnstv2026-10-281-0/+15
|
* move keepalive and firewall to pathstv2026-10-281-12/+86
|
* rename PING/PONG to STATUS/STATUS_REPLYtv2026-10-281-18/+18
|
* talk about "transport" unless mycelium is meanttv2026-10-271-1/+1
|
* add farewell pingtv2026-10-261-1/+21
|
* add pull queuetv2026-10-261-1/+1
|
* read stamps sync and lock freetv2026-10-261-7/+13
|
* split peer moduletv2026-10-261-0/+112