Skip to content

Plan 329: bound the H3 local send ceilings at u32::MAX - #8

Merged
dbowm91 merged 1 commit into
mainfrom
plan-329-h3-send-window-bound
Nov 28, 2026
Merged

dbowm91 merged 1 commit into
mainfrom
plan-329-h3-send-window-bound

Conversation

@dbowm91

@dbowm91 dbowm91 commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Bound Http3Config::send_window (quinn's per-connection retained-write memory cap) and max_send_buf_size to 1..=u32::MAX, matching http2.max_send_buf_size, with field-named diagnostics and unit tests at and above the ceiling.
  • Keep the QUIC VarInt ceiling (2^62-1) on the wire-encoded receive windows and idle timeout, so the two classes of bound stay separate.
  • Update 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.md section 13. No CLI/Python surface, default, capability tier, or wire behavior changes; H3 remains experimental.

Test plan

  • 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)
  • cargo clippy -p eggserve-core --features http3,tls --lib --tests -- -D warnings
  • cargo test -p eggserve-core --features http3,tls --test http3_runtime (16 passed)
  • cargo check --workspace --all-targets --features http3,tls
  • cargo +1.89 check --workspace --all-targets --features http3,tls
  • git diff --check and python3 scripts/check-crate-topology.py
  • CI green on this PR

./scripts/verify.sh fast was not used as the gate: it still cannot complete on the author's macOS host because of the pre-existing app_bounded_body_accepts_and_over_limit_rejects failure recorded in the 327 closure and owned by direct-h1-runtime.

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.
@dbowm91
dbowm91 merged commit 5fdd7da into main Nov 28, 2026
9 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant