mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-08-11 08:47:33 +00:00
PerRelayLoadTracker silenced (→ stalled) any in-flight relay after 15 s of total cohort dead air. Over Tor, REQs queue on a not-yet-connected socket and circuits routinely take 20–80 s to come up, so relays — including the user's primary — were being flagged "stalled" before they ever connected (visible in the Messages trace: vitor's history REQ went out at +0 s, was silenced at +15 s, and only actually hit the wire at +77 s). Bump the window to 60 s. lastActivityMs is global, so any relay delivering keeps it fresh for the whole cohort — this only fires on total dead air, and a genuinely dead relay still settles via CLOSED / cannot-connect, not this watchdog.