Repository navigation
reject connection-specific header fields in HTTP/3 messages - #3806
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3806 +/- ##
==========================================
+ Coverage 96.77% 96.80% +0.02%
==========================================
Files 120 120
Lines 40854 40889 +35
Branches 40854 40889 +35
==========================================
+ Hits 39538 39582 +44
+ Misses 1291 1280 -11
- Partials 25 27 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
Merging this PR will degrade performance by 16.8%
|
| Mode | Benchmark | BASE |
HEAD |
Efficiency | |
|---|---|---|---|---|---|
| ❌ | Memory | simulated/10-streams/each-1048576-bytes |
9.7 MB | 11.7 MB | -16.8% |
Tip
Investigate this regression by commenting @codspeedbot fix this regression on this PR, or directly use the CodSpeed MCP with your agent.
Comparing uwezkhan:connection-specific-headers (b51cc27) with main (76673b1)
Benchmark resultsNo significant performance differences relative to 76673b1. All resultsstreams/walltime/1-streams/each-1000-bytes time: [554.19 µs 555.99 µs 558.10 µs]
thrpt: [1.7088 MiB/s 1.7153 MiB/s 1.7208 MiB/s]
Found 11 outliers among 100 measurements (11.00%)
4 (4.00%) high mild
7 (7.00%) high severestreams/walltime/1000-streams/each-1-bytes time: [11.205 ms 11.221 ms 11.237 ms]
thrpt: [86.904 KiB/s 87.032 KiB/s 87.155 KiB/s]
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) high mildstreams/walltime/1000-streams/each-1000-bytes time: [31.739 ms 31.780 ms 31.822 ms]
thrpt: [29.969 MiB/s 30.009 MiB/s 30.047 MiB/s]
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) high mildstreams-flow-controlled/walltime/1-streams/each-4194304-bytes time: [26.989 ms 27.042 ms 27.097 ms]
thrpt: [147.62 MiB/s 147.92 MiB/s 148.21 MiB/s]
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) high mildstreams-flow-controlled/walltime/10-streams/each-1048576-bytes time: [71.681 ms 72.222 ms 72.781 ms]
thrpt: [137.40 MiB/s 138.46 MiB/s 139.51 MiB/s]transfer/walltime/pacing-false/varying-seeds time: [18.358 ms 18.368 ms 18.377 ms]
thrpt: [217.66 MiB/s 217.78 MiB/s 217.89 MiB/s]
Found 11 outliers among 100 measurements (11.00%)
5 (5.00%) low mild
3 (3.00%) high mild
3 (3.00%) high severetransfer/walltime/pacing-true/varying-seeds time: [18.837 ms 18.848 ms 18.859 ms]
thrpt: [212.10 MiB/s 212.22 MiB/s 212.34 MiB/s]
Found 4 outliers among 100 measurements (4.00%)
2 (2.00%) low mild
2 (2.00%) high mildtransfer/walltime/pacing-false/same-seed time: [18.432 ms 18.446 ms 18.463 ms]
thrpt: [216.65 MiB/s 216.85 MiB/s 217.02 MiB/s]
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) high severetransfer/walltime/pacing-true/same-seed time: [18.828 ms 18.841 ms 18.854 ms]
thrpt: [212.16 MiB/s 212.31 MiB/s 212.45 MiB/s]
Found 3 outliers among 100 measurements (3.00%)
3 (3.00%) high mildDownload data for |
Client/server transfer resultsPerformance differences relative to 76673b1. Transfer of 33554432 bytes over loopback, min. 100 runs. All unit-less numbers are in milliseconds.
Table above only shows statistically significant changes. See all results below. All resultsTransfer of 33554432 bytes over loopback, min. 100 runs. All unit-less numbers are in milliseconds.
Download data for |
Failed Interop TestsQUIC Interop Runner, client vs. server, differences relative to
All resultsSucceeded Interop TestsQUIC Interop Runner, client vs. server neqo-pr as client
neqo-pr as server
Unsupported Interop TestsQUIC Interop Runner, client vs. server neqo-pr as client
neqo-pr as server
|
User-visible changes since v0.30.1: - Update nss-rs to 0.14.4, now requiring NSS >= 3.126: mozilla#3874 - WebTransport getStats() support: mozilla#3835 - Reliable reset handling for HTTP/3: mozilla#3777 - Optionally close a connection after N consecutive PTOs: mozilla#3662 - Reject 0-RTT downgrade of h3 datagram and WebTransport settings: mozilla#3852 - Reject connection-specific header fields in HTTP/3 messages: mozilla#3806 - Reject qpack dynamic reference at or above required insert count: mozilla#3807 - Discard server Initial packets that carry a token: mozilla#3814
User-visible changes since v0.30.1: - Update nss-rs to 0.14.4, now requiring NSS >= 3.126: mozilla#3874 - WebTransport getStats() support: mozilla#3835 - Reliable reset handling for HTTP/3: mozilla#3777 - Optionally close a connection after N consecutive PTOs: mozilla#3662 - Reject 0-RTT downgrade of h3 datagram and WebTransport settings: mozilla#3852 - Reject connection-specific header fields in HTTP/3 messages: mozilla#3806 - Reject qpack dynamic reference at or above required insert count: mozilla#3807 - Discard server Initial packets that carry a token: mozilla#3814
Bump the vendored neqo crates from v0.30.1 to v0.31.0 (mozilla/neqo#3880) and adapt neqo_glue: drop the HTTP/3 server-push handling neqo removed, map the new TooManyPtos transport error, and read cwnd as a plain value. Add a git-delta audit for mtu, a neqo workspace crate. Also strip connection-specific header fields when http3server forwards a response over HTTP/3: neqo v0.31.0 (mozilla/neqo#3806) rejects them as malformed per RFC 9114, Section 4.2, which otherwise breaks the h3 xpcshell tests.
Bump the vendored neqo crates from v0.30.1 to v0.31.0 (mozilla/neqo#3880) and adapt neqo_glue: drop the HTTP/3 server-push handling neqo removed, map the new TooManyPtos transport error, and read cwnd as a plain value. Add a git-delta audit for mtu, a neqo workspace crate. Also strip connection-specific header fields when http3server forwards a response over HTTP/3: neqo v0.31.0 (mozilla/neqo#3806) rejects them as malformed per RFC 9114, Section 4.2, which otherwise breaks the h3 xpcshell tests.
Bump the vendored neqo crates from v0.30.1 to v0.31.0 (mozilla/neqo#3880) and adapt neqo_glue: drop the HTTP/3 server-push handling neqo removed, map the new TooManyPtos transport error, and read cwnd as a plain value. Add a git-delta audit for mtu, a neqo workspace crate. Also strip connection-specific header fields when http3server forwards a response over HTTP/3: neqo v0.31.0 (mozilla/neqo#3806) rejects them as malformed per RFC 9114, Section 4.2, which otherwise breaks the h3 xpcshell tests. Differential Revision: https://phabricator.services.mozilla.com/D321290
Bump the vendored neqo crates from v0.30.1 to v0.31.0 (mozilla/neqo#3880) and adapt neqo_glue: drop the HTTP/3 server-push handling neqo removed, map the new TooManyPtos transport error, and read cwnd as a plain value. Add a git-delta audit for mtu, a neqo workspace crate. Also strip connection-specific header fields when http3server forwards a response over HTTP/3: neqo v0.31.0 (mozilla/neqo#3806) rejects them as malformed per RFC 9114, Section 4.2, which otherwise breaks the h3 xpcshell tests. Differential Revision: https://phabricator.services.mozilla.com/D321290
Bump the vendored neqo crates from v0.30.1 to v0.31.0 (mozilla/neqo#3880) and adapt neqo_glue: drop the HTTP/3 server-push handling neqo removed, map the new TooManyPtos transport error, and read cwnd as a plain value. Add a git-delta audit for mtu, a neqo workspace crate. Also strip connection-specific header fields when http3server forwards a response over HTTP/3: neqo v0.31.0 (mozilla/neqo#3806) rejects them as malformed per RFC 9114, Section 4.2, which otherwise breaks the h3 xpcshell tests. Differential Revision: https://phabricator.services.mozilla.com/D321290
Bump the vendored neqo crates from v0.30.1 to v0.31.0 (mozilla/neqo#3880) and adapt neqo_glue: drop the HTTP/3 server-push handling neqo removed, map the new TooManyPtos transport error, and read cwnd as a plain value. Add a git-delta audit for mtu, a neqo workspace crate. Also strip connection-specific header fields when http3server forwards a response over HTTP/3: neqo v0.31.0 (mozilla/neqo#3806) rejects them as malformed per RFC 9114, Section 4.2, which otherwise breaks the h3 xpcshell tests. Differential Revision: https://phabricator.services.mozilla.com/D321290
…eviewers,leggert,kershaw,afranchuk Bump the vendored neqo crates from v0.30.1 to v0.31.0 (mozilla/neqo#3880) and adapt neqo_glue: drop the HTTP/3 server-push handling neqo removed, map the new TooManyPtos transport error, and read cwnd as a plain value. Add a git-delta audit for mtu, a neqo workspace crate. Also strip connection-specific header fields when http3server forwards a response over HTTP/3: neqo v0.31.0 (mozilla/neqo#3806) rejects them as malformed per RFC 9114, Section 4.2, which otherwise breaks the h3 xpcshell tests. Differential Revision: https://phabricator.services.mozilla.com/D321290
…eviewers,leggert,kershaw,afranchuk Bump the vendored neqo crates from v0.30.1 to v0.31.1 (mozilla/neqo#3880) and adapt neqo_glue: drop the HTTP/3 server-push handling neqo removed, map the new TooManyPtos transport error, and read cwnd as a plain value. Add a git-delta audit for mtu, a neqo workspace crate. Also strip connection-specific header fields when http3server forwards a response over HTTP/3: neqo v0.31.1 (mozilla/neqo#3806) rejects them as malformed per RFC 9114, Section 4.2, which otherwise breaks the h3 xpcshell tests. Differential Revision: https://phabricator.services.mozilla.com/D321290
…eviewers,leggert,kershaw,afranchuk Bump the vendored neqo crates from v0.30.1 to v0.31.1 (mozilla/neqo#3880) and adapt neqo_glue: drop the HTTP/3 server-push handling neqo removed, map the new TooManyPtos transport error, and read cwnd as a plain value. Add a git-delta audit for mtu, a neqo workspace crate. Also strip connection-specific header fields when http3server forwards a response over HTTP/3: neqo v0.31.1 (mozilla/neqo#3806) rejects them as malformed per RFC 9114, Section 4.2, which otherwise breaks the h3 xpcshell tests. Differential Revision: https://phabricator.services.mozilla.com/D321290
Bump the vendored neqo crates from v0.30.1 to v0.31.1 (mozilla/neqo#3880) and adapt neqo_glue: drop the HTTP/3 server-push handling neqo removed, map the new TooManyPtos transport error, and read cwnd as a plain value. Add a git-delta audit for mtu, a neqo workspace crate. Also strip connection-specific header fields when http3server forwards a response over HTTP/3: neqo v0.31.1 (mozilla/neqo#3806) rejects them as malformed per RFC 9114, Section 4.2, which otherwise breaks the h3 xpcshell tests. Differential Revision: https://phabricator.services.mozilla.com/D321290
…eviewers,leggert,kershaw,afranchuk Bump the vendored neqo crates from v0.30.1 to v0.31.1 (mozilla/neqo#3880) and adapt neqo_glue: drop the HTTP/3 server-push handling neqo removed, map the new TooManyPtos transport error, and read cwnd as a plain value. Add a git-delta audit for mtu, a neqo workspace crate. Also strip connection-specific header fields when http3server forwards a response over HTTP/3: neqo v0.31.1 (mozilla/neqo#3806) rejects them as malformed per RFC 9114, Section 4.2, which otherwise breaks the h3 xpcshell tests. Differential Revision: https://phabricator.services.mozilla.com/D321290
…eviewers,leggert,kershaw,afranchuk Bump the vendored neqo crates from v0.30.1 to v0.31.0 (mozilla/neqo#3880) and adapt neqo_glue: drop the HTTP/3 server-push handling neqo removed, map the new TooManyPtos transport error, and read cwnd as a plain value. Add a git-delta audit for mtu, a neqo workspace crate. Also strip connection-specific header fields when http3server forwards a response over HTTP/3: neqo v0.31.0 (mozilla/neqo#3806) rejects them as malformed per RFC 9114, Section 4.2, which otherwise breaks the h3 xpcshell tests. Differential Revision: https://phabricator.services.mozilla.com/D321290 UltraBlame original commit: 84c892709258120d74b927d78f4572146c96e267
…eviewers,leggert,kershaw,afranchuk Bump the vendored neqo crates from v0.30.1 to v0.31.0 (mozilla/neqo#3880) and adapt neqo_glue: drop the HTTP/3 server-push handling neqo removed, map the new TooManyPtos transport error, and read cwnd as a plain value. Add a git-delta audit for mtu, a neqo workspace crate. Also strip connection-specific header fields when http3server forwards a response over HTTP/3: neqo v0.31.0 (mozilla/neqo#3806) rejects them as malformed per RFC 9114, Section 4.2, which otherwise breaks the h3 xpcshell tests. Differential Revision: https://phabricator.services.mozilla.com/D321290 UltraBlame original commit: 84c892709258120d74b927d78f4572146c96e267
…eviewers,leggert,kershaw,afranchuk Bump the vendored neqo crates from v0.30.1 to v0.31.0 (mozilla/neqo#3880) and adapt neqo_glue: drop the HTTP/3 server-push handling neqo removed, map the new TooManyPtos transport error, and read cwnd as a plain value. Add a git-delta audit for mtu, a neqo workspace crate. Also strip connection-specific header fields when http3server forwards a response over HTTP/3: neqo v0.31.0 (mozilla/neqo#3806) rejects them as malformed per RFC 9114, Section 4.2, which otherwise breaks the h3 xpcshell tests. Differential Revision: https://phabricator.services.mozilla.com/D321290 UltraBlame original commit: 84c892709258120d74b927d78f4572146c96e267
…eviewers,leggert,kershaw,afranchuk Bump the vendored neqo crates from v0.30.1 to v0.31.0 (mozilla/neqo#3880) and adapt neqo_glue: drop the HTTP/3 server-push handling neqo removed, map the new TooManyPtos transport error, and read cwnd as a plain value. Add a git-delta audit for mtu, a neqo workspace crate. Also strip connection-specific header fields when http3server forwards a response over HTTP/3: neqo v0.31.0 (mozilla/neqo#3806) rejects them as malformed per RFC 9114, Section 4.2, which otherwise breaks the h3 xpcshell tests. Differential Revision: https://phabricator.services.mozilla.com/D321290
…eviewers,leggert,kershaw,afranchuk Bump the vendored neqo crates from v0.30.1 to v0.31.1 (mozilla/neqo#3880) and adapt neqo_glue: drop the HTTP/3 server-push handling neqo removed, map the new TooManyPtos transport error, and read cwnd as a plain value. Add a git-delta audit for mtu, a neqo workspace crate. Also strip connection-specific header fields when http3server forwards a response over HTTP/3: neqo v0.31.1 (mozilla/neqo#3806) rejects them as malformed per RFC 9114, Section 4.2, which otherwise breaks the h3 xpcshell tests. Differential Revision: https://phabricator.services.mozilla.com/D321290
headers_valid() scans received field names and values for illegal bytes but never rejects the connection-specific field names themselves, so a server response carrying Connection, Transfer-Encoding, Upgrade, Keep-Alive, or Proxy-Connection is accepted. RFC 9114 Section 4.2 makes any message that contains one of these malformed. Today recv_message quietly strips the field with a retain() filter and delivers the rest, which is what malformed_response_excluded_header asserted even though its own comment claimed the stream was reset.
Before, the field was dropped and the response delivered; after, headers_valid rejects it so the stream resets with H3_MESSAGE_ERROR, matching the Section 4.3 CR/LF/NUL checks sitting next to it. The check lives in headers_valid because that is the one point both the client response path and the server request path pass through, and it keeps the send path honest through the existing debug assertion. The tradeoff is strictness over leniency: TE stays allowed, but only with the value trailers.