Skip to content

fix(relay): preserve reconnect backoff#2759

Open
cameronhotchkies wants to merge 1 commit into
lazyjoe/reconnect-testability-refactorfrom
cameronhotchkies/relay-reconnect-hang
Open

fix(relay): preserve reconnect backoff#2759
cameronhotchkies wants to merge 1 commit into
lazyjoe/reconnect-testability-refactorfrom
cameronhotchkies/relay-reconnect-hang

Conversation

@cameronhotchkies

Copy link
Copy Markdown
Contributor

Why

Manual relay recovery polls every three seconds, repeatedly consuming the session's exponential-backoff timer and leaving reconnect behavior stuck or noisy on degraded networks.

What

  • Replace fixed-cadence Phase 3 polling with observation of the RelayClient background reconnect loop
  • Raise the fast-path deadline above the native websocket timeout and enforce that contract in a regression test
  • Keep the existing 120-second backstop as a soft UI timeout without stopping background retries

Risk Assessment

Medium — this changes live relay recovery timing, but removes a competing retry loop rather than adding one. The existing connection-state subscription remains the success signal.

References

Generated with Codex

Co-authored-by: npub1x4hk035p3p9q39a3fcrd2fe30lpkrhr5dwe0cqzzjphxyyh8m0gsq4vqap <356f67c681884a0897b14e06d527317fc361dc746bb2fc0042906e6212e7dbd1@sprout-oss.stage.blox.sqprod.co>
Signed-off-by: npub1x4hk035p3p9q39a3fcrd2fe30lpkrhr5dwe0cqzzjphxyyh8m0gsq4vqap <356f67c681884a0897b14e06d527317fc361dc746bb2fc0042906e6212e7dbd1@sprout-oss.stage.blox.sqprod.co>
@cameronhotchkies
cameronhotchkies marked this pull request as ready for review July 24, 2026 21:04
@cameronhotchkies
cameronhotchkies requested a review from a team as a code owner July 24, 2026 21:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant