Repository navigation
fix(http3): only send QUIC DATAGRAM after SETTINGS_H3_DATAGRAM negotiation - #4155
larseggert wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
🟢 Approval recommended
Static review found no blocking issues in the focused negotiation fix or bidirectional regression coverage; tests were not executed.
No open issues 🎉
What changed in this PR
This PR fixes HTTP/3 datagram selection for connect-udp: QUIC DATAGRAM is used only when the peer’s transport parameter and both endpoints’ HTTP/3 settings allow it. Otherwise, datagrams use capsules on the CONNECT stream. WebTransport behavior remains unchanged.
Changes:
- Gate QUIC DATAGRAM sending on transport support and local and received peer settings.
- Pass the negotiation result to the session’s existing capsule fallback.
- Add bidirectional regression coverage verifying capsule delivery without QUIC DATAGRAM frames.
| File | Description |
|---|---|
neqo-http3/tests/connect_udp.rs |
Extracts configurable session setup and tests fallback when the proxy disables HTTP/3 datagrams. |
neqo-http3/src/features/extended_connect/session.rs |
Selects capsule fallback using the caller’s negotiation result. |
neqo-http3/src/connection.rs |
Checks datagram negotiation before sending and condenses the existing 0-RTT settings comment. |
Review effort: Balanced
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4155 +/- ##
==========================================
- Coverage 96.97% 96.81% -0.17%
==========================================
Files 113 118 +5
Lines 42253 42607 +354
Branches 42253 42607 +354
==========================================
+ Hits 40976 41250 +274
- Misses 1263 1333 +70
- Partials 14 24 +10
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Merging this PR will regress 1 benchmark1 warning
Warning Please fix the performance issues or acknowledge them on CodSpeed. Performance Changes
Tip Investigate this regression by commenting Comparing |
8d0a4be to
a01cbcc
Compare
…ation Fall back to DATAGRAM capsules for connect-udp unless SETTINGS_H3_DATAGRAM=1 was both sent and received (RFC 9297 §2.1.1). Discovered by Anthropic's OSS Scanner, as vulnerability ANT-2026-JE9BAEXL.
a01cbcc to
76d4661
Compare
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
|
Client/server transfer resultsPerformance differences relative to db74969. 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 |
Benchmark resultsNo significant performance differences relative to db74969. All resultstransfer/1-conn/1-100mb-req (aka. Upload)/mtu-1500 time: [57.045 ms 57.085 ms 57.127 ms]
thrpt: [1.7094 GiB/s 1.7107 GiB/s 1.7119 GiB/s]
Found 4 outliers among 100 measurements (4.00%)
4 (4.00%) high mildtransfer/1-conn/1-100mb-resp (aka. Download)/mtu-1500 time: [56.526 ms 56.575 ms 56.625 ms]
thrpt: [1.7246 GiB/s 1.7261 GiB/s 1.7276 GiB/s]
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) high mildtransfer/1-conn/1-1b-resp (aka. HPS)/mtu-1500 time: [3.5415 ms 3.5423 ms 3.5431 ms]
thrpt: [282.24 B/s 282.31 B/s 282.37 B/s]
Found 6 outliers among 100 measurements (6.00%)
4 (4.00%) high mild
2 (2.00%) high severetransfer/1-conn/10_000-parallel-1b-resp (aka. RPS)/mtu-1500 time: [81.632 ms 81.822 ms 82.016 ms]
thrpt: [121.93 Kelem/s 122.22 Kelem/s 122.50 Kelem/s]
Found 4 outliers among 100 measurements (4.00%)
4 (4.00%) high mildstreams-flow-controlled/walltime/1-streams/each-4194304-bytes time: [12.644 ms 12.648 ms 12.652 ms]
thrpt: [316.15 MiB/s 316.26 MiB/s 316.36 MiB/s]
Found 2 outliers among 100 measurements (2.00%)
2 (2.00%) high mildstreams-flow-controlled/walltime/10-streams/each-1048576-bytes time: [34.445 ms 34.461 ms 34.476 ms]
thrpt: [290.06 MiB/s 290.18 MiB/s 290.31 MiB/s]
Found 3 outliers among 100 measurements (3.00%)
3 (3.00%) low mildstreams/walltime/1-streams/each-1000-bytes time: [157.85 µs 158.50 µs 159.33 µs]
thrpt: [5.9856 MiB/s 6.0169 MiB/s 6.0417 MiB/s]
Found 2 outliers among 100 measurements (2.00%)
2 (2.00%) high mildstreams/walltime/1000-streams/each-1-bytes time: [4.4829 ms 4.4886 ms 4.4942 ms]
thrpt: [217.29 KiB/s 217.56 KiB/s 217.84 KiB/s]
Found 4 outliers among 100 measurements (4.00%)
4 (4.00%) low mildstreams/walltime/1000-streams/each-1000-bytes time: [14.753 ms 14.767 ms 14.781 ms]
thrpt: [64.522 MiB/s 64.582 MiB/s 64.641 MiB/s]transfer/walltime/pacing-false/same-seed time: [3.7589 ms 3.7606 ms 3.7627 ms]
thrpt: [1.0382 GiB/s 1.0387 GiB/s 1.0392 GiB/s]transfer/walltime/pacing-false/varying-seeds time: [3.8782 ms 3.8808 ms 3.8838 ms]
thrpt: [1.0058 GiB/s 1.0066 GiB/s 1.0072 GiB/s]transfer/walltime/pacing-true/same-seed time: [4.1856 ms 4.1866 ms 4.1878 ms]
thrpt: [955.17 MiB/s 955.42 MiB/s 955.66 MiB/s]
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) high mildtransfer/walltime/pacing-true/varying-seeds time: [4.0675 ms 4.0731 ms 4.0802 ms]
thrpt: [980.34 MiB/s 982.05 MiB/s 983.39 MiB/s]Instructions per cycleCriterion reported no significant timing changes. All benchmarks
Profiles for profiler.firefox.com (64)
Download data for |
connect-udp chose QUIC DATAGRAM frames whenever the peer's max_datagram_frame_size was non-zero, even if either side had not sent SETTINGS_H3_DATAGRAM = 1, which RFC 9297 §2.1.1 forbids. HTTP Datagrams now go out as DATAGRAM capsules on the CONNECT stream unless the transport parameter, the peer's received setting and the local setting all allow QUIC DATAGRAM. WebTransport is unchanged, because it cannot be negotiated without the setting.
Discovered by Anthropic's OSS Scanner, as vulnerability ANT-2026-JE9BAEXL.