summaryrefslogtreecommitdiffstats
path: root/src/transport/sim.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
commit2638df1a9269962685a4a058edbdf6c86e60535b (patch)
tree619bcbb569ce9ff01041e2f76f0f5959a6ae0556 /src/transport/sim.rs
parentedbb715d3a6b1e36f1442b60302dc25689864980 (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/transport/sim.rs')
0 files changed, 0 insertions, 0 deletions