Skip to content

docs: the endpoint holds several connections now - #67

Merged
mattrobenolt merged 1 commit into
mainfrom
docs/quic-pool
Dec 3, 2026
Merged

mattrobenolt merged 1 commit into
mainfrom
docs/quic-pool

Conversation

@mattrobenolt

Copy link
Copy Markdown
Member

quic #28/#30 landed connection pools at 3d7882d: the endpoint holds SizingLimits.connections machines, routes datagrams by destination connection ID, and queues established connections for accept.

This pins http to that commit and follows through where the old shape was documented:

  • examples/http3_server.zig listens once with connections = 4 and serves connections from one endpoint, instead of binding a socket and building an endpoint per connection. The startup line says how many it holds.
  • The guide's ## Serve it over QUIC said "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 and serve takes one per call.
  • The client section said overlap needs a second connection "because quic-io's endpoint holds one connection's storage". The reason is Connection.request serializing, and it now says so.
  • The README's connection-reuse bullet follows.

zig build test, just doc, oxfmt --check, and just lint pass. examples/http3_server.zig builds against the new pin.

@mattrobenolt
mattrobenolt force-pushed the docs/quic-pool branch 2 times, most recently from 9d8bba5 to 04e2d08 Compare December 3, 2026 00:11
`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
mattrobenolt merged commit ce4ec04 into main Dec 3, 2026
7 checks passed
@mattrobenolt
mattrobenolt deleted the docs/quic-pool branch December 3, 2026 01:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant