Repository navigation
fix(session): let a reconnect attempt that is about to connect finish; release 0.11.6 - #69
Merged
Merged
Conversation
…; release 0.11.6 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Problem
After a 14 s network outage (15 s window) the client discarded reconnect attempt 1 on its 6 s settle timer just as the network came back, then the 15 s budget cut attempt 2 while it was still connecting (
WEBRTC_RECONNECT_EXHAUSTED … 2 attempts in 15000 ms), although the server still held the session.Change
checking/connectingand budget remains, extend once by up to 3 s.checking/connecting), wait up toRECONNECT_INFLIGHT_GRACE_MS(4 s) beforeWEBRTC_RECONNECT_EXHAUSTED; no new attempt starts during the grace.Tests
Extended settle can connect; in-flight attempt at budget end restores; no new attempt during the grace; grace without connect fails. 242 tests; recovery file 20/20.
Verified locally and via CI; no extra manual steps.
🤖 Generated with Claude Code