Repository navigation
test: cover trailer completion and QUIC receive-pool recovery - #36
Merged
Merged
Conversation
hatoo
enabled auto-merge (squash)
October 21, 2026 05:00
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.
A chunked HTTP/1 response must remain in flight until the empty line after its trailers is complete. Add native TCP and TLS worker tests that send 0-byte, 64 KiB and 1 MiB ignored trailer values, including binary lines, then withhold the final empty-line LF. The peer detects an early next request or connection close; the tests verify exact response/status counts, received socket bytes and every latency sample.
The independent Quinn replacement test used eight receive buffers, which can exhaust during a packet burst and produce an additional, correctly handled
ENOBUFScompletion. Size that fixture to the production worker's 64-buffer minimum while retaining its exact cancellation and generation assertions. A controlled 32-datagram replacement test now forces exhaustion with eight buffers and verifies rearming, all payloads, all buffer returns and exact accounting; the 64-buffer case must receive the same burst without a terminal completion. It observes retirement before injecting the burst so cancellation delivery order is explicit.This PR changes regression fixtures only.
Validation:
cargo test --lockedandcargo test --release --locked: 511 unit and 62 integration tests pass per profile; two existing tests remain ignored.cargo clippy --locked --all-targets -- -D warningsandcargo fmt --check: pass.response completed before final LF; the default parser was restored before the full passing checks.