Repository navigation
Plan 329: bound the H3 local send ceilings at u32::MAX - #8
Merged
Merged
Conversation
Http3Config::validate rejected only zero for send_window and max_send_buf_size. send_window is quinn's per-connection retained-write memory cap, so any value above zero disabled the only bound on retained unacknowledged write memory; max_send_buf_size had no upper bound even though the HTTP/2 twin is capped at u32::MAX. Bound both to 1..=u32::MAX with field-named diagnostics that state the range, matching http2.max_send_buf_size. The QUIC VarInt ceiling (2^62-1) stays on the wire-encoded receive windows and idle timeout, so the two classes of bound remain separate. Defaults (4 MiB and 256 KiB), field types, and the public surface are unchanged; H3 stays experimental. New tests cover one above the ceiling and the ceiling itself for both fields, plus default validity. The pre-fix validator accepted the above-ceiling values: both tests failed with unwrap_err() on Ok(()) when the earlier non-zero-only arms were temporarily restored. Docs and records: architecture/http3.md states the semantics and ceilings, CHANGELOG gains the 329 bullet, and the registry, TLS identity roadmap, 327 closure section 13, and the new 329 closure record mark the finding resolved. Verified before commit: cargo fmt --all -- --check, cargo test -p eggserve-h3 (19 passed), cargo clippy -p eggserve-h3 --all-targets -D warnings, cargo test -p eggserve-core --features http3,tls --lib (164 passed), core clippy with http3,tls, the http3_runtime suite (16 passed), workspace and MSRV 1.89 checks, git diff --check, and scripts/check-crate-topology.py.
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.
Summary
Http3Config::send_window(quinn's per-connection retained-write memory cap) andmax_send_buf_sizeto1..=u32::MAX, matchinghttp2.max_send_buf_size, with field-named diagnostics and unit tests at and above the ceiling.2^62-1) on the wire-encoded receive windows and idle timeout, so the two classes of bound stay separate.architecture/http3.md(semantics and ceilings),CHANGELOG.md, the TLS identity roadmap, the registry, and the 327 closure section 13; add the 329 closure record.Closes the low finding recorded in
plans/closure/tls-identity/327-tls-substrate-corrective.mdsection 13. No CLI/Python surface, default, capability tier, or wire behavior changes; H3 remains experimental.Test plan
cargo fmt --all -- --checkcargo test -p eggserve-h3(19 passed)cargo clippy -p eggserve-h3 --all-targets -- -D warningscargo test -p eggserve-core --features http3,tls --lib(164 passed)cargo clippy -p eggserve-core --features http3,tls --lib --tests -- -D warningscargo test -p eggserve-core --features http3,tls --test http3_runtime(16 passed)cargo check --workspace --all-targets --features http3,tlscargo +1.89 check --workspace --all-targets --features http3,tlsgit diff --checkandpython3 scripts/check-crate-topology.py./scripts/verify.sh fastwas not used as the gate: it still cannot complete on the author's macOS host because of the pre-existingapp_bounded_body_accepts_and_over_limit_rejectsfailure recorded in the 327 closure and owned bydirect-h1-runtime.