Repository navigation
libs/trystero: count the negotiating room as advertised (fixes the interop 'one room leaving' flake) - #70
Merged
Conversation
…room as advertised, so that the browser interop's "one room leaving" no longer fails when Chrome drops the page's first frames (webcpporg/trystero#11, 7693e2b)
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.
What this changes
This moves the
libs/trysterogitlink to webcpporg/trystero#11 (7693e2b), which fixes the flaky browser interop scenario "One room leaving, either side, leaves the other room and the connection". That scenario failed on main in CI run 47519299767.Root cause
Chrome dropped the page's first frames on its answering channel: its presence, and its
@_hsreadyfor the first room. The C++ first room, bound by its own negotiation, timed its handshake out and kicked the page. Its rebinding then waited for an advertisement that a Trystero JS page never sends again.Fix
The room whose negotiation made a connection now counts as the remote's advertisement. After the kick, the rebinding at 11 s brings the page back to that room. No timeout changed.
Proof
There is a new deterministic interop scenario for this case. It failed 7 runs of 7 before the fix and passed 20 runs of 20 after it. The full browser interop passes 27 of 27 scenarios, and the macOS and Linux lints are clean.
🤖 Generated with Claude Code