Repository navigation
h3: put the session's error code on the wire - #62
Merged
Merged
Conversation
Both engines answered a session `.reset` with `stream.shutdown(.both)` and a `.stop_sending` with `.recv`, which send those frames with application code 0. A malformed request therefore reached the peer as `H3_NO_ERROR` instead of `H3_MESSAGE_ERROR`, which is h3spec's ten cases in #41. `quic#10` added `Stream.reset(io, code)` and `Stream.stopSending(io, code)`; the engines use them now, with the code the session queued. The quic pin moves to that commit. End-to-end verification is h3spec, which needs the network to build; quic-io does not expose a received reset code to a caller, so no loopback test can see it.
mattrobenolt
force-pushed
the
fix/h3-reset-codes
branch
from
November 29, 2026 05:22
e0d7a48 to
fe731d7
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.
h3spec's ten cases in #41 all say the same thing: a malformed request is reset with application error 0 instead of
H3_MESSAGE_ERROR(0x10e).The session was already right —
head.requestrejects the fields and queues a reset withH3_MESSAGE_ERROR. The engines threw the code away: a.resetaction becamestream.shutdown(.both)and a.stop_sendingbecame.recv, and both frames went out with code 0.baskingspot/quic#10addedStream.reset(io, code)andStream.stopSending(io, code). The engines call them with the session's code, and the quic pin moves to that merge.On verification: quic-io does not expose a received reset code to the caller, so a loopback test cannot see this. The session-level tests already assert the queued code; the end-to-end witness is h3spec, which needs the network to build (0.1.15 from Hackage through
just h3spec-build).just cipasses.