diff options
| author | tv <tv@krebsco.de> | 2026-10-25 22:46:51 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-10-25 22:46:51 +0100 |
| commit | ce08d7855f44e4a15cf6951c508952d5799d4545 (patch) | |
| tree | dc3417eab5df91c15dcaed706de20f7eb4bfbfbe /src/simtest/timing.rs | |
| parent | 6febc8176fd2e18e1e8503d3eeaa1a9b5ca74797 (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/simtest/timing.rs')
0 files changed, 0 insertions, 0 deletions
