Repository navigation
asio and cobalt: their tests and texts under the -O3 release link - #19
Merged
Merged
Conversation
pinhopro
pushed a commit
to webcpporg/trystero
that referenced
this pull request
Nov 15, 2026
…ce does A room bound a peer over a shared connection only once the peer's presence for the room had come on that connection. Trystero sends a room's presence once per connection, from the open of its channel, and Chrome can drop what a page sends on an answering channel as it opens: in the interop lane's delayed-open scenario, run in 2-CPU Linux containers, Chrome logged "Send failed INVALID_STATE" for both presence frames and the native peer's SCTP received neither, 8 runs of 240. The room whose own connection the page closed as the second then never bound: the page's frames of that room were kept and expired, and its announcements were claimed by the live connection and bound nothing. That is the CI failure of webcpporg/webcpp#19. A room frame of a local room's token that the connection keeps now records the token as the remote's advertisement, below the bound of 64 tokens (a frame never ends the connection for a 65th), and the room binds on it. Only the peer writes to its connection, so a forged announcement still binds nothing. Without the change, connection's a_kept_frame_advertises_its_token fails, and so do shared's a_lost_presence_is_replaced_by_the_peers_frames, which replaces binding_needs_the_peers_own_presence, and frames_before_presence_bind_their_room, which replaces frames_before_presence_are_kept; connection's a_kept_frame_never_advertises_a_65th_token holds the bound. A kept @_leave still discards what came before it where a room keeps frames without binding, during the lower id's refusal, which a_kept_leave_discards_what_came_before now sets up. The scenario then passed 480 runs of 480 in the same containers.
This was referenced Nov 16, 2026
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.
Title: asio and cobalt: their tests and texts under the -O3 release link
Records the asio and cobalt commits that bring their tests and texts to the release link at
-O3of #18:worker_page.htmlno longer requires Emscripten'sdoPollAsyncofbrowser_worker_move_failure, which never polls and whose release link drops it; theoptimized_linkbuilds, now byte-identical to release, are gone, the bridge's release tests stay asbridge_release_exceptions_on/off; the Asyncify stack is measured again (debug is the deepest build, 1,168 bytes; release 388) and stays 8192, with the reason restated; the README and guides no longer passlinkflags=-O3to a release build or say b2 links one without optimization.Aborted(native code called abort())with assertions andAborted()without, and nothing else;cobalt_stack_optimized_link_*is gone.Verification
Local, macOS arm64, Emscripten 6.0.11, Node 26.13.0: every emscripten lane of the two libraries, ordinary and own, from scratch in its own build directory with the CI's options, in release and in debug, passed (
tools/report/report.py); both libraries' pages built (b2 -a libs/asio/doc libs/cobalt/doc);tools/lint/lint.shwith wasi-sdk's clang-format and clang-tidy: clean, every rule, clang-tidy over 834 translation units.No CI was run.
CODING-GUIDELINES.md: chapter 15's asio entry describes the Asyncify stack and the published sizes under the-O3release link (debug is the deepest build; 8192 stays the default and floor the libraries on asio are tested against).Follow-ups, not in this pull request
third_party/Jamfileglobslibs/opensslfor*.c,*.h, ... down to its nested submodules, whichtools/openssl/pin.jsonomits: in a checkout where they are initialized, oqs-provider'soqs-templatedirectories named*.cand*.hstop every native b2 run at load ("Unable to find file or target named libs/openssl/oqs-provider/oqs-template/test/test_common.c"), and OpenSSL's clean-tree check fails on them. The doc build and the lint were run here with that directory set aside anddiff.ignoreSubmodules=dirtyfor the run.🤖 Generated with Claude Code