Repository navigation
docs: the endpoint holds several connections now - #67
Merged
Merged
Conversation
mattrobenolt
force-pushed
the
docs/quic-pool
branch
2 times, most recently
from
December 3, 2026 00:11
9d8bba5 to
04e2d08
Compare
`quic` 3d7882d gave `quic-io`'s endpoint a connection table, so a server keeps one endpoint and calls `Engine.serve` per connection instead of building an endpoint per connection. The example does that with four connections in the pool, and its startup line says how many it holds. The guide and README said an endpoint holds one connection's storage and that a concurrent second request needs a second connection for that reason. Both are now false: a second request needs a second connection because `Connection.request` serializes, not because the endpoint cannot hold two.
mattrobenolt
force-pushed
the
docs/quic-pool
branch
from
December 3, 2026 00:45
04e2d08 to
086da38
Compare
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.
quic#28/#30 landed connection pools at3d7882d: the endpoint holdsSizingLimits.connectionsmachines, routes datagrams by destination connection ID, and queues established connections foraccept.This pins http to that commit and follows through where the old shape was documented:
examples/http3_server.ziglistens once withconnections = 4and serves connections from one endpoint, instead of binding a socket and building an endpoint per connection. The startup line says how many it holds.## Serve it over QUICsaid "quic-io's endpoint holds one connection's storage, so a server that accepts another connection needs a second endpoint". It now says the endpoint holds several andservetakes one per call.quic-io's endpoint holds one connection's storage". The reason isConnection.requestserializing, and it now says so.zig build test,just doc,oxfmt --check, andjust lintpass.examples/http3_server.zigbuilds against the new pin.