Back off endpoint rebuilds during relay outages - #94
Merged
Merged
Conversation
A rebuild only helps when iroh's relay bookkeeping went stale. When the relay itself is unreachable the fresh endpoint never registers either (the rebuild factory tolerates a failed online wait), so the watchdog tripped again 180s later and every LAN client was dropped every few minutes for as long as the relay outage lasted. The watchdog now returns a RelayOutage that says whether a home relay was connected at any point of the watch, and takes its rebuild deadline as a parameter. run_server doubles that deadline for each consecutive endpoint that never registered (180s, 6m, 12m, 24m, capped at 30m) and resets it once an endpoint does register. The 60s nudge and the 30s bind-failure retry are unchanged. Same change as ezvpn's relay-watchdog branch; the module stays identical between the two repos. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PFw1C9hzWKyoieoxWVSqbA
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implement a backoff strategy for endpoint rebuilds when relays are unreachable, preventing frequent drops of LAN clients. The watchdog now tracks relay connectivity and adjusts rebuild deadlines accordingly. Update version to 0.0.72 for flextunnel packages.