Skip to content

feat(http3): log the parameters_set qlog event - #4417

Open
flawand wants to merge 1 commit into
mozilla:mainfrom
flawand:qlog-http3-parameters-set
Open

flawand wants to merge 1 commit into
mozilla:mainfrom
flawand:qlog-http3-parameters-set

Conversation

@flawand

@flawand flawand commented Nov 24, 2026

Copy link
Copy Markdown

Emit the HTTP/3 parameters_set event when sending local SETTINGS and when receiving the peer's. Part of #528.

Emit the HTTP/3 parameters_set event when sending local SETTINGS and when receiving the peer's. Part of mozilla#528.
@larseggert

Copy link
Copy Markdown
Collaborator

Is there a way to avoid threading now through all these APIs?

@codecov

codecov Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 99.38272% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 96.63%. Comparing base (6ae0599) to head (6942f9c).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4417      +/-   ##
==========================================
+ Coverage   96.61%   96.63%   +0.01%     
==========================================
  Files         118      118              
  Lines       43894    44042     +148     
  Branches    43894    44042     +148     
==========================================
+ Hits        42410    42560     +150     
+ Misses       1463     1461       -2     
  Partials       21       21              
Flag Coverage Δ
freebsd 94.14% <96.91%> (+10.35%) ⬆️
linux 96.78% <99.38%> (+<0.01%) ⬆️
macos 94.52% <96.91%> (+0.01%) ⬆️
windows 94.59% <96.91%> (+0.03%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
neqo-common 99.33% <ø> (+0.04%) ⬆️
neqo-http3 96.05% <99.38%> (+0.04%) ⬆️
neqo-qpack 96.55% <ø> (ø)
neqo-transport 97.13% <ø> (+<0.01%) ⬆️
neqo-udp 87.63% <ø> (ø)
mtu 91.31% <ø> (ø)

@larseggert
larseggert requested a balanced review from Copilot November 24, 2026 07:44
@github-actions

Copy link
Copy Markdown
Contributor

Failed Interop Tests

QUIC Interop Runner, client vs. server, differences relative to main at c46d346.

neqo-pr as clientneqo-pr as server
neqo-pr vs. aioquic: run cancelled after 20 min
neqo-pr vs. go-x-net: run cancelled after 20 min
neqo-pr vs. haproxy: run cancelled after 20 min
neqo-pr vs. kwik: run cancelled after 20 min
neqo-pr vs. linuxquic: run cancelled after 20 min
neqo-pr vs. lsquic: run cancelled after 20 min
neqo-pr vs. msquic: run cancelled after 20 min
neqo-pr vs. mvfst: run cancelled after 20 min
neqo-pr vs. neqo: run cancelled after 20 min
neqo-pr vs. nginx: run cancelled after 20 min
neqo-pr vs. ngtcp2: run cancelled after 20 min
neqo-pr vs. picoquic: run cancelled after 20 min
neqo-pr vs. quic-go: run cancelled after 20 min
neqo-pr vs. quic-zig: run cancelled after 20 min
neqo-pr vs. quiche: run cancelled after 20 min
neqo-pr vs. quinn: run cancelled after 20 min
neqo-pr vs. rama: run cancelled after 20 min
neqo-pr vs. s2n-quic: run cancelled after 20 min
neqo-pr vs. tquic: run cancelled after 20 min
neqo-pr vs. xquic: run cancelled after 20 min
aioquic vs. neqo-pr: run cancelled after 20 min
chrome vs. neqo-pr: run cancelled after 20 min
go-x-net vs. neqo-pr: run cancelled after 20 min
kwik vs. neqo-pr: run cancelled after 20 min
linuxquic vs. neqo-pr: run cancelled after 20 min
lsquic vs. neqo-pr: run cancelled after 20 min
msquic vs. neqo-pr: run cancelled after 20 min
mvfst vs. neqo-pr: run cancelled after 20 min
neqo vs. neqo-pr: run cancelled after 20 min
ngtcp2 vs. neqo-pr: run cancelled after 20 min
openssl vs. neqo-pr: run cancelled after 20 min
picoquic vs. neqo-pr: run cancelled after 20 min
quic-go vs. neqo-pr: run cancelled after 20 min
quic-zig vs. neqo-pr: run cancelled after 20 min
quiche vs. neqo-pr: run cancelled after 20 min
quinn vs. neqo-pr: run cancelled after 20 min
rama vs. neqo-pr: run cancelled after 20 min
s2n-quic vs. neqo-pr: run cancelled after 20 min
tquic vs. neqo-pr: run cancelled after 20 min
xquic vs. neqo-pr: run cancelled after 20 min
All results

Succeeded Interop Tests

QUIC Interop Runner, client vs. server

neqo-pr as client

None ❓

neqo-pr as server

None ❓

Unsupported Interop Tests

QUIC Interop Runner, client vs. server

neqo-pr as client

None ❓

neqo-pr as server

None ❓

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Resumption-token settings are incorrectly logged as a received SETTINGS update, with a flag that misrepresents 0-RTT request behavior; the event and corresponding test expectations need correction.

1 open issue
What changed in this PR

Adds HTTP/3 settings logging to Neqo’s qlog support, advancing the probe coverage tracked in #528.

Changes:

  • Adds a helper to serialize HTTP/3 settings into parameters_set events.
  • Hooks logging into local SETTINGS, peer SETTINGS, and resumption handling, passing timestamps through client and server paths.
  • Adds serialization and client handshake/resumption tests.
File Description
neqo-http3/​src/​qlog.rs Adds the settings event helper and serialization test.
neqo-http3/​src/​connection.rs Emits settings events and threads timestamps through connection handling.
neqo-http3/​src/​connection_server.rs Passes timestamps into server state-change handling.
neqo-http3/​src/​connection_client.rs Updates timestamp arguments and adds handshake and 0-RTT logging tests.

Review effort: Balanced

Comment on lines +531 to +535
h3_qlog::parameters_set(
conn.qlog_mut(),
Initiator::Remote,
&settings,
Some(true),
@codspeed

codspeed Bot commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

Merging this PR will degrade performance by 3.77%

1 warning

⚠️ 1 benchmark is dominated by system calls

System calls cannot be simulated consistently and are left out of the measure. The reported value understates the real cost. Switch to the Walltime instrument to measure them.

Learn more about system calls

See affected benchmarks

⚡ 2 improved benchmarks
❌ 3 regressed benchmarks
✅ 92 untouched benchmarks
⏩ 4 skipped benchmarks1

Warning

Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Mode Benchmark BASE HEAD Efficiency
❌ Walltime walltime/pacing-true/varying-seeds 3.8 ms 4.1 ms -8.82%
❌ Walltime walltime/pacing-false/varying-seeds 3.3 ms 3.6 ms -8.47%
❌ Walltime quiche-neqo 47 ms 49.7 ms -5.44%
⚡ Walltime walltime/1000-streams/each-1000-bytes 15.5 ms 15.1 ms +2.41%
⚡ Walltime walltime/10-streams/each-1048576-bytes 36.2 ms 35.5 ms +2.09%

Tip

Investigate this regression by commenting @codspeedbot fix this regression on this PR, or directly use the CodSpeed MCP with your agent.


Comparing flawand:qlog-http3-parameters-set (6942f9c) with main (c46d346)

Open in CodSpeed

Footnotes

  1. 4 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

@github-actions

Copy link
Copy Markdown
Contributor

Benchmark results

No significant performance differences relative to c46d346.

All results
transfer/1-conn/1-100mb-req (aka. Upload)/mtu-1500
       time:   [60.739 ms 60.783 ms 60.827 ms]
       thrpt:  [1.6055 GiB/s 1.6066 GiB/s 1.6078 GiB/s]
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) high mild
transfer/1-conn/1-100mb-resp (aka. Download)/mtu-1500
       time:   [60.737 ms 60.798 ms 60.861 ms]
       thrpt:  [1.6046 GiB/s 1.6063 GiB/s 1.6079 GiB/s]
Found 2 outliers among 100 measurements (2.00%)
2 (2.00%) high mild
transfer/1-conn/1-1b-resp (aka. HPS)/mtu-1500
       time:   [3.8066 ms 3.8073 ms 3.8080 ms]
       thrpt:  [262.61   B/s 262.65   B/s 262.70   B/s]
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) low mild
transfer/1-conn/10_000-parallel-1b-resp (aka. RPS)/mtu-1500
       time:   [87.100 ms 87.279 ms 87.457 ms]
       thrpt:  [114.34 Kelem/s 114.58 Kelem/s 114.81 Kelem/s]
streams-flow-controlled/walltime/1-streams/each-4194304-bytes
       time:   [13.035 ms 13.039 ms 13.042 ms]
       thrpt:  [306.69 MiB/s 306.78 MiB/s 306.87 MiB/s]
streams-flow-controlled/walltime/10-streams/each-1048576-bytes
       time:   [35.574 ms 35.595 ms 35.617 ms]
       thrpt:  [280.76 MiB/s 280.94 MiB/s 281.10 MiB/s]
Found 5 outliers among 100 measurements (5.00%)
3 (3.00%) high mild
2 (2.00%) high severe
streams/walltime/1-streams/each-1000-bytes
       time:   [160.95 µs 161.62 µs 162.48 µs]
       thrpt:  [5.8697 MiB/s 5.9007 MiB/s 5.9251 MiB/s]
Found 2 outliers among 100 measurements (2.00%)
2 (2.00%) high mild
streams/walltime/1000-streams/each-1-bytes
       time:   [4.7381 ms 4.7403 ms 4.7426 ms]
       thrpt:  [205.91 KiB/s 206.01 KiB/s 206.11 KiB/s]
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) high mild
streams/walltime/1000-streams/each-1000-bytes
       time:   [15.108 ms 15.120 ms 15.131 ms]
       thrpt:  [63.027 MiB/s 63.076 MiB/s 63.124 MiB/s]
transfer/walltime/pacing-false/same-seed
       time:   [3.3695 ms 3.3723 ms 3.3757 ms]
       thrpt:  [1.1572 GiB/s 1.1583 GiB/s 1.1593 GiB/s]
Found 6 outliers among 100 measurements (6.00%)
1 (1.00%) low mild
5 (5.00%) high mild
transfer/walltime/pacing-false/varying-seeds
       time:   [3.3165 ms 3.3195 ms 3.3232 ms]
       thrpt:  [1.1755 GiB/s 1.1768 GiB/s 1.1778 GiB/s]
Found 7 outliers among 100 measurements (7.00%)
6 (6.00%) high mild
1 (1.00%) high severe
transfer/walltime/pacing-true/same-seed
       time:   [4.0626 ms 4.0648 ms 4.0675 ms]
       thrpt:  [983.41 MiB/s 984.05 MiB/s 984.58 MiB/s]
transfer/walltime/pacing-true/varying-seeds
       time:   [3.8704 ms 3.8724 ms 3.8748 ms]
       thrpt:  [1.0081 GiB/s 1.0087 GiB/s 1.0093 GiB/s]

Instructions per cycle

Criterion reported no significant timing changes.

All benchmarks
Benchmark IPC before IPC after ΔIPC
transfer/1-conn/1-100mb-resp (aka. Download)/mtu-1500 3.10 3.16 +2.0%
transfer/1-conn/1-100mb-req (aka. Upload)/mtu-1500 3.07 3.12 +1.4%
streams-flow-controlled/walltime/1-streams/each-4194304-bytes 2.93 2.97 +1.4%
transfer/1-conn/10_000-parallel-1b-resp (aka. RPS)/mtu-1500 3.21 3.25 +1.1%
streams/walltime/1000-streams/each-1000-bytes 2.94 2.96 +0.8%
streams-flow-controlled/walltime/10-streams/each-1048576-bytes 3.12 3.10 -0.5%
transfer/walltime/pacing-false/varying-seeds 2.88 2.87 -0.5%
transfer/walltime/pacing-true/same-seed 2.87 2.86 -0.5%
transfer/1-conn/1-1b-resp (aka. HPS)/mtu-1500 2.25 2.26 +0.2%
transfer/walltime/pacing-false/same-seed 2.87 2.86 -0.2%
streams/walltime/1000-streams/each-1-bytes 3.27 3.26 -0.2%
transfer/walltime/pacing-true/varying-seeds 2.88 2.87 -0.1%
streams/walltime/1-streams/each-1000-bytes 2.58 2.58 +0.1%
Profiles for profiler.firefox.com (64)

Download data for profiler.firefox.com or download performance comparison data.

@github-actions

Copy link
Copy Markdown
Contributor

Client/server transfer results

Performance differences relative to c46d346.

Transfer of 33554432 bytes over loopback, min. 100 runs. All unit-less numbers are in milliseconds.

Client vs. server Mean±σ Min–Max Median±MAD MiB/s±σ ΔMedian
google-neqo-cubic 79.4 ± 0.4 78.4 – 80.4 79.4 ± 0.4 403.2 ± 2.0 💔 +0.9 (+1.2%)
neqo-neqo-cubic 24.2 ± 0.2 23.8 – 24.8 24.2 ± 0.2 1321.1 ± 10.7 💔 +0.3 (+1.1%)
neqo-neqo-cubic-nopacing 23.8 ± 0.2 23.5 – 24.4 23.8 ± 0.1 1342.8 ± 9.1 💔 +0.5 (+1.9%)
neqo-neqo-newreno-nopacing 23.8 ± 0.1 23.6 – 24.2 23.8 ± 0.1 1345.3 ± 6.6 💔 +0.5 (+2.0%)
quiche-neqo-cubic 37.2 ± 0.7 35.9 – 40.2 37.1 ± 0.6 860.7 ± 16.1 💔 +0.5 (+1.4%)

Table above only shows statistically significant changes. See all results below.

All results

Transfer of 33554432 bytes over loopback, min. 100 runs. All unit-less numbers are in milliseconds.

Client vs. server Mean±σ Min–Max Median±MAD MiB/s±σ ΔMedian
google-google 155.7 ± 0.7 154.4 – 157.2 155.7 ± 0.7 205.5 ± 0.9
google-neqo-cubic 79.4 ± 0.4 78.4 – 80.4 79.4 ± 0.4 403.2 ± 2.0 💔 +0.9 (+1.2%)
neqo-google-cubic ⚠️ 230.8 ± 33.3 203.3 – 316.7 207.6 ± 3.2 138.6 ± 20.0 -30.3 (-12.7%)
neqo-neqo-cubic 24.2 ± 0.2 23.8 – 24.8 24.2 ± 0.2 1321.1 ± 10.7 💔 +0.3 (+1.1%)
neqo-neqo-cubic-nopacing 23.8 ± 0.2 23.5 – 24.4 23.8 ± 0.1 1342.8 ± 9.1 💔 +0.5 (+1.9%)
neqo-neqo-newreno 24.2 ± 0.2 23.9 – 24.8 24.2 ± 0.2 1321.0 ± 9.5 +0.2 (+0.7%)
neqo-neqo-newreno-nopacing 23.8 ± 0.1 23.6 – 24.2 23.8 ± 0.1 1345.3 ± 6.6 💔 +0.5 (+2.0%)
neqo-quiche-cubic 35.2 ± 0.3 34.5 – 36.3 35.2 ± 0.3 908.5 ± 8.4 +0.1 (+0.3%)
neqo-s2n-cubic 45.7 ± 0.2 45.2 – 46.1 45.7 ± 0.2 700.9 ± 3.1 +0.0 (+0.1%)
quiche-neqo-cubic 37.2 ± 0.7 35.9 – 40.2 37.1 ± 0.6 860.7 ± 16.1 💔 +0.5 (+1.4%)
quiche-quiche 42.8 ± 0.2 42.2 – 43.4 42.8 ± 0.2 747.3 ± 4.3
s2n-neqo-cubic 129.0 ± 0.6 127.6 – 130.8 129.0 ± 0.7 248.0 ± 1.2 +0.1 (+0.1%)
s2n-s2n ⚠️ 180.7 ± 28.9 147.5 – 273.0 171.5 ± 1.6 177.1 ± 28.4

Download data for profiler.firefox.com or download performance comparison data.

This branch has not been deployed

No deployments
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.

3 participants