aboutsummaryrefslogtreecommitdiffstats
path: root/src/swarm/peer.rs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-10-25 22:46:51 +0100
committertv <tv@krebsco.de>2026-10-25 22:46:51 +0100
commite209a42df064d19042c55d3df92bc0a2345d284c (patch)
tree40a440f17925724bf8b5725f92b4c11f3d09ddc7 /src/swarm/peer.rs
parente0ae9774e2d529dc01715148ff49fde327eb5749 (diff)
avoid stalled source
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.
Diffstat (limited to 'src/swarm/peer.rs')
0 files changed, 0 insertions, 0 deletions