Files
Amber/app
Claude d37119be00 Drop dead relays from the subscription pool, not just reconnect backoff
The previous change only stopped the logger listener from scheduling
reconnects, but Quartz's relay pool is driven by the relays referenced in
active subscriptions. NotificationSubscription.updateFilter re-subscribed
every 30s with the full relay set, so the pool kept opening a socket to an
unreachable relay on every refresh.

Move the per-relay failure tracking into a shared RelayHealthTracker and
exclude dead relays from the subscription relay sets in updateFilter, so a
dead relay leaves the pool entirely and is no longer reconnected. Dead-relay
state is cleared on a successful connection, on every OS network change
(ConnectivityService), and on a manual reconnect (ReconnectReceiver), so
relays get a fresh chance to recover.

https://claude.ai/code/session_01SLv8ZEooFiXErAvpARtz2Y
2026-06-12 12:19:56 +00:00
..
2024-03-01 06:56:32 -03:00
2023-07-26 16:44:33 -03:00
2026-06-01 11:05:58 -03:00