aboutsummaryrefslogtreecommitdiffstats
path: root/src/swarm/source.rs
Commit message (Collapse)AuthorAgeFilesLines
* swarm: the peer worker's periodic checks run when something happened, and ↵HEADmastertv11 hours1-1/+1
| | | | | | | | | | | | | | rarely when quiet Every five seconds the peer worker looked at the forget records, the member registry, stability, whom the node reaches, its links, its clock, its measurements and the state file. It now looks five seconds after the document or a peer's state changed, every five seconds while something of these is under way (the node not ready or catching up, a forget record not acted on, a link's change not settled, the tier after a restart not decided, a neighbour not reached), and once a minute otherwise, for what changes with time alone. Stability takes two measurements more than two minutes apart for the node not having run.
* peer worker sleeps until deadline, not fixed timetv2026-11-011-0/+16
|
* unify request_sync logictv2026-10-311-3/+2
|
* unify source resettv2026-10-311-3/+9
|
* rename PING/PONG to STATUS/STATUS_REPLYtv2026-10-281-2/+2
|
* talk about "transport" unless mycelium is meanttv2026-10-271-11/+11
|
* unify lock logictv2026-10-261-12/+4
|
* refresh peers after stalltv2026-10-251-1/+6
|
* avoid stalled sourcetv2026-10-251-2/+24
| | | | | | | | | | | | | A source given up for not answering our sync messages could become the source again straight away. Whoever asks first after the reset takes the role, and that's often the same peer, which would then stall for another delivery limit. Now, a stalled source isn't chosen again for one more delivery_limit. If it's the only candidate, catching up waits that long and then tries it again. Before, a retry with that peer couldn't have helped any sooner anyway: a source is only given up after a whole delivery limit without a sync message, and that clock restarts when it is chosen again.
* MYCELIUM_DELIVERY_LIMIT -> Timing::delivery_limittv2026-10-251-6/+3
|
* require catch-up source to make progresstv2026-10-251-1/+89
|
* add chunked download and use it during rejointv2026-10-241-1/+1
|
* add swarm statstv2026-10-241-0/+1
|
* record RTT sampling instanttv2026-10-241-2/+3
|
* prefer closer sources to catch uptv2026-10-241-3/+42
|
* enrich keepalive contenttv2026-10-231-0/+169
Add ready and syncs_with_you flags as well as actual heads, so the peer - ready: same meaning as in the sync message - syncs_with_you: sender counts recipient as member and in same epoch - heads: allows to tell who's behind or if both sides have changes