summaryrefslogtreecommitdiffstats
path: root/src/api/stats/prometheus.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
commitce08d7855f44e4a15cf6951c508952d5799d4545 (patch)
treedc3417eab5df91c15dcaed706de20f7eb4bfbfbe /src/api/stats/prometheus.rs
parent6febc8176fd2e18e1e8503d3eeaa1a9b5ca74797 (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/api/stats/prometheus.rs')
0 files changed, 0 insertions, 0 deletions