Skip to content

trystero: a page relay's connection allocates nothing outside the room's resource for its resolution - #7

Merged
pinhopro merged 1 commit into
mainfrom
page-resolver-results
Nov 18, 2026
Merged

pinhopro merged 1 commit into
mainfrom
page-resolver-results

Conversation

@pinhopro

Copy link
Copy Markdown
Contributor

What changes

A page relay's connection no longer allocates outside the room's resource for its resolution.

webcpp::asio's page resolver now holds its results' one entry in place (webcpporg/asio#7), so that resolving the relay's host allocates nothing. Until then, Boost's results allocated with new once per relay connection, the one allocation a room still made outside its resource in a page, besides embind's strings.

  • platform_page_relay_allocation expects no operator new at a connection's open, for a short host and a long one, where it expected the resolver's.
  • The guide (doc/allocation.adoc), the guarantees and the platform's notes no longer list the resolver's results. They say that embind's strings of each event's type stay, as the owner decided.
  • platform/websocket.hpp: two comments say the same.

The change is in the tests and the documentation alone, so the changelog is unchanged.

Verified locally

  • platform_page_relay_allocation and its no-exceptions variant on emscripten, with webcpp::asio's merged main.
  • clang-format and the lint's pattern rules over the touched files.

🤖 Generated with Claude Code

…m's resource for its resolution, which webcpp::asio's page resolver now holds in place

platform_page_relay_allocation expects no operator new at a connection's open, for a short host
and a long one; the guide, the guarantees and the platform's notes no longer list the resolver's
results, and say that embind's strings of each event's type stay.
@pinhopro
pinhopro merged commit ec8e026 into main Nov 18, 2026
1 of 3 checks passed
@pinhopro
pinhopro deleted the page-resolver-results branch November 19, 2026 02:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant