GeezerVison is showing github.com — quic: handle application-specific no-error codes by efekrskl · Pull Request #67094 · nodejs/node
Conversation
This started as a consistency fix between Session::EmitClose() and Stream::EmitClose().
Before this change, three places decided whether a QUIC application code meant an error, and they did not agree. Session close only considered code 0 clean, so an HTTP/3 peer closing with H3_NO_ERROR (0x100) could reject session.closed. Stream handling recognized H3_NO_ERROR in C++, but JavaScript later treated any non-zero reset code as an error. As a result, a clean HTTP/3 reset could still reject stream.closed or fail a read.
The underlying QuicError conversion also hardcoded HTTP/3 values without knowing which protocol had been selected. This change moves that decision to code that has that information:
- Raw QUIC keeps
0 as its no-error code.
- HTTP/3 treats
H3_NO_ERROR and unknown or reserved codes as no error, as required by RFC 9114.
- Known HTTP/3 errors, including
H3_DATAGRAM_ERROR, remain errors.
QuicError now preserves the original type and code. Sessions and streams use the selected protocol to interpret them, and JavaScript no longer guesses based on whether the number is zero.
AI assistance: I used Codex's assistance for the investigation/PR
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
nodejs-github-bot
added
c++
Issues and PRs that require attention from people who are familiar with C++.
needs-ci
PRs that need a full CI run.
quic
Issues and PRs related to the QUIC transport implementation.
labels
Oct 28, 2026
codecov
Bot
commented
Oct 28, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|
✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.66%. Comparing base (40b49b6) to head (a8c0f42).
⚠️ Report is 88 commits behind head on main.
Additional details and impacted files
@@ Coverage Diff @@
## main #67094 +/- ##
==========================================
- Coverage 92.62% 90.66% -1.97%
==========================================
Files 432 799 +367
Lines 197476 280284 +82808
Branches 30129 54135 +24006
==========================================
+ Hits 182917 254120 +71203
- Misses 14231 16288 +2057
- Partials 328 9876 +9548
... and 523 files with indirect coverage changes
🚀 New features to boost your workflow:
- ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
- 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Onboard with the general concept, code looks good to me, but I think the undefined error code is worth looking at. Even though it's preexisting, this makes it much broader since it now covers all unknown H3 codes - all unknown h3 codes are exposed as undefined instead of their raw values.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
efekrskl
added
request-ci
Add this label to start a Jenkins CI on a PR. Only starts once the PR has an approving review.
and removed
request-ci
Add this label to start a Jenkins CI on a PR. Only starts once the PR has an approving review.
labels
Nov 16, 2026
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Commit Queue failed
This pull request has multiple commits, but no landing policy was selected.
Add
commit-queue-squash
PRs the Commit Queue should land as one squashed commit.
to land it as one commit, or
commit-queue-rebase
PRs the Commit Queue should land as multiple self-contained commits.
to land the commits separately.
The pull request was removed from the Commit Queue and labeled
commit-queue-failed
PRs whose Commit Queue landing failed and need manual intervention before retrying.
. After resolving the failure, remove that label and add
commit-queue
PRs queued for automated landing through the Commit Queue.
to retry.
Full Commit Queue output
�[36m⠋�[39m Loading data for nodejs/node/pull/67094
�[36m⠋�[39m Loading data for nodejs/node/pull/67094
�[36m⠋�[39m Getting collaborator contacts from README of nodejs/node
�[36m⠋�[39m Getting PR from nodejs/node/pull/67094
�[36m⠋�[39m Getting reviews from nodejs/node/pull/67094
�[36m⠋�[39m Getting comments from nodejs/node/pull/67094
�[36m⠋�[39m Getting commits from nodejs/node/pull/67094
✔ Done loading data for nodejs/node/pull/67094
----------------------------------- PR info ------------------------------------
Title quic: handle application-specific no-error codes (#67094)
⚠ Could not retrieve the email or name of the PR's author from user's GitHub profile!
Branch efekrskl:quic/error-mismatch -> nodejs:main
Labels c++, needs-ci, quic, commit-queue
Commits 6
- quic: handle application-specific no-error codes
- quic: fmt
- quic: revert incorrect adjustment and fix docs
- quic: handle stop sending
- quic: lint
- quic: fix no crypto build
Committers 1
- Efe Karasakal <[email protected]>
PR-URL: https://github.com/nodejs/node/pull/67094
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Tim Perry <[email protected]>
------------------------------ Generated metadata ------------------------------
PR-URL: https://github.com/nodejs/node/pull/67094
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Tim Perry <[email protected]>
--------------------------------------------------------------------------------
ℹ This PR was created on Wed, 28 Oct 2026 22:09:59 GMT
✔ Approvals: 2
✔ - James M Snell (@jasnell) (TSC): https://github.com/nodejs/node/pull/67094#pullrequestreview-5901952624
✔ - Tim Perry (@pimterry): https://github.com/nodejs/node/pull/67094#pullrequestreview-5937843708
✔ Last GitHub CI successful
ℹ Last Full PR CI on 2026-11-17T17:25:38Z: https://ci.nodejs.org/job/node-test-pull-request/79220/
�[36m⠙�[39m Querying data for job/node-test-pull-request/79220/
�[36m⠙�[39m Querying data for job/node-test-pull-request/79220/
�[36m⠙�[39m Querying API for job/node-test-pull-request/79220/
✔ Build data downloaded
✔ Last Jenkins CI successful
--------------------------------------------------------------------------------
✔ No git cherry-pick in progress
✔ No git am in progress
✔ No git rebase in progress
--------------------------------------------------------------------------------
�[36m⠹�[39m Bringing origin/main up to date...
�[36m⠹�[39m Bringing origin/main up to date...
From https://github.com/nodejs/node
* branch main -> FETCH_HEAD
✔ origin/main is now up-to-date
�[36m⠸�[39m Downloading patch for 67094
�[36m⠸�[39m Downloading patch for 67094
From https://github.com/nodejs/node
* branch refs/pull/67094/merge -> FETCH_HEAD
✔ Fetched commits as d2da05f14be5..a8c0f4282ca9
--------------------------------------------------------------------------------
Auto-merging lib/internal/quic/quic.js
Auto-merging src/quic/session.cc
[main c4ea0288fb] quic: handle application-specific no-error codes
Author: Efe Karasakal <[email protected]>
Date: Wed Oct 28 23:05:42 2026 +0100
15 files changed, 288 insertions(+), 129 deletions(-)
create mode 100644 test/parallel/test-quic-session-application-no-error.mjs
Auto-merging src/quic/session.cc
[main 915c06fe82] quic: fmt
Author: Efe Karasakal <[email protected]>
Date: Wed Oct 28 23:18:35 2026 +0100
3 files changed, 3 insertions(+), 4 deletions(-)
Auto-merging lib/internal/quic/quic.js
[main 42b4ea44af] quic: revert incorrect adjustment and fix docs
Author: Efe Karasakal <[email protected]>
Date: Fri Nov 13 17:54:05 2026 +0100
4 files changed, 9 insertions(+), 10 deletions(-)
Auto-merging lib/internal/quic/quic.js
[main 3057700e61] quic: handle stop sending
Author: Efe Karasakal <[email protected]>
Date: Fri Nov 13 19:35:50 2026 +0100
5 files changed, 47 insertions(+), 5 deletions(-)
Auto-merging lib/internal/quic/quic.js
[main e9de580daa] quic: lint
Author: Efe Karasakal <[email protected]>
Date: Fri Nov 13 20:55:58 2026 +0100
1 file changed, 2 insertions(+), 2 deletions(-)
[main 2710dafd04] quic: fix no crypto build
Author: Efe Karasakal <[email protected]>
Date: Mon Nov 16 20:59:17 2026 +0100
1 file changed, 1 insertion(+), 1 deletion(-)
✔ Patches applied
There are 6 commits in the PR. Attempting autorebase.
(node:431) [DEP0190] DeprecationWarning: Passing args to a child process with shell option true can lead to security vulnerabilities, as the arguments are not escaped, only concatenated.
(Use `node --trace-deprecation ...` to show where the warning was created)
Rebasing (2/12)
Executing: git node land --amend --yes
--------------------------------- New Message ----------------------------------
quic: handle application-specific no-error codes
Signed-off-by: Efe Karasakal <[email protected]>
PR-URL: https://github.com/nodejs/node/pull/67094
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Tim Perry <[email protected]>
--------------------------------------------------------------------------------
[detached HEAD d71c638bbd] quic: handle application-specific no-error codes
Author: Efe Karasakal <[email protected]>
Date: Wed Oct 28 23:05:42 2026 +0100
15 files changed, 288 insertions(+), 129 deletions(-)
create mode 100644 test/parallel/test-quic-session-application-no-error.mjs
Rebasing (3/12)
Rebasing (4/12)
Executing: git node land --amend --yes
--------------------------------- New Message ----------------------------------
quic: fmt
Signed-off-by: Efe Karasakal <[email protected]>
PR-URL: https://github.com/nodejs/node/pull/67094
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Tim Perry <[email protected]>
--------------------------------------------------------------------------------
[detached HEAD abcf97a65e] quic: fmt
Author: Efe Karasakal <[email protected]>
Date: Wed Oct 28 23:18:35 2026 +0100
3 files changed, 3 insertions(+), 4 deletions(-)
Rebasing (5/12)
Rebasing (6/12)
Executing: git node land --amend --yes
--------------------------------- New Message ----------------------------------
quic: revert incorrect adjustment and fix docs
PR-URL: https://github.com/nodejs/node/pull/67094
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Tim Perry <[email protected]>
--------------------------------------------------------------------------------
[detached HEAD 441a5baa5a] quic: revert incorrect adjustment and fix docs
Author: Efe Karasakal <[email protected]>
Date: Fri Nov 13 17:54:05 2026 +0100
4 files changed, 9 insertions(+), 10 deletions(-)
Rebasing (7/12)
Rebasing (8/12)
Executing: git node land --amend --yes
--------------------------------- New Message ----------------------------------
quic: handle stop sending
PR-URL: https://github.com/nodejs/node/pull/67094
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Tim Perry <[email protected]>
--------------------------------------------------------------------------------
[detached HEAD 51095e5e7f] quic: handle stop sending
Author: Efe Karasakal <[email protected]>
Date: Fri Nov 13 19:35:50 2026 +0100
5 files changed, 47 insertions(+), 5 deletions(-)
Rebasing (9/12)
Rebasing (10/12)
Executing: git node land --amend --yes
--------------------------------- New Message ----------------------------------
quic: lint
PR-URL: https://github.com/nodejs/node/pull/67094
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Tim Perry <[email protected]>
--------------------------------------------------------------------------------
[detached HEAD 68bfa521da] quic: lint
Author: Efe Karasakal <[email protected]>
Date: Fri Nov 13 20:55:58 2026 +0100
1 file changed, 2 insertions(+), 2 deletions(-)
Rebasing (11/12)
Rebasing (12/12)
Executing: git node land --amend --yes
--------------------------------- New Message ----------------------------------
quic: fix no crypto build
PR-URL: https://github.com/nodejs/node/pull/67094
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Tim Perry <[email protected]>
--------------------------------------------------------------------------------
[detached HEAD aaf618bb98] quic: fix no crypto build
Author: Efe Karasakal <[email protected]>
Date: Mon Nov 16 20:59:17 2026 +0100
1 file changed, 1 insertion(+), 1 deletion(-)
Successfully rebased and updated refs/heads/main.
--------------------------------------------------------------------------------
ℹ Add `commit-queue-squash` label to land the PR as one commit, or `commit-queue-rebase` to land as separate commits.
View workflow run
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Reviewers
jasnell
jasnell approved these changes
pimterry
pimterry approved these changes
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
c++
Issues and PRs that require attention from people who are familiar with C++.
commit-queue-squash
PRs the Commit Queue should land as one squashed commit.
needs-ci
PRs that need a full CI run.
quic
Issues and PRs related to the QUIC transport implementation.
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|