Repository navigation
libs/trystero: hold a second connection for the peer's choice (fixes interop_native room-leave flake) - #45
Merged
Merged
Conversation
…hows which it keeps, which ends interop_native's flaky "one room leaving" (gitlink 8d4df61) CI run 44726002584 failed "Native C++: one room leaving, either side, leaves the other room and the connection" with "console.error Trystero peer error: OperationError": two rooms' connections crossed, the native app closed at once the one the page kept, and libdatachannel's stream reset and SHUTDOWN ahead of its ABORT let Chrome fail the page's first sends and report the failure. trystero now holds such a second connection until the peer shows which it keeps (1,800 two-room meetings: no peer error, against 6 before; the scenario passed 600 runs of 600), and the coding guidelines' adoption decision says so, with the reason.
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.
Bumps libs/trystero to webcpporg/trystero#9, which fixes the intermittent interop_native failure "Native C++: one room leaving, either side, leaves the other room and the connection" (CI run 44726002584).
The failure came from two rooms' connections crossing. The native app closed at once the connection the page kept. libdatachannel's stream reset and SHUTDOWN came ahead of its ABORT, so Chrome failed the page's first sends on that connection, and Trystero JS logged a peer error.
trystero now holds such a second connection until the peer shows which one it keeps. The trystero PR has the evidence and the measurements.
This PR also updates CODING-GUIDELINES.md's decision "Adoption follows Trystero" to the new rule, with the reason.
Verified locally on macOS:
tools/lint/lint.shis clean.🤖 Generated with Claude Code