Skip to content

quic: reset rejected HTTP/3 request streams with H3_REQUEST_REJECTED - #65442

Open
trivenay wants to merge 1 commit into
nodejs:mainfrom
trivenay:quic-h3-request-rejected
Open

quic: reset rejected HTTP/3 request streams with H3_REQUEST_REJECTED#65442
trivenay wants to merge 1 commit into
nodejs:mainfrom
trivenay:quic-h3-request-rejected

Conversation

@trivenay

Copy link
Copy Markdown
Contributor

When an incoming HTTP/3 request stream is rejected without any application processing (the session has no stream consumer), it is now reset with H3_REQUEST_REJECTED so the peer learns the request was not processed, per RFC 9114 §4.1.1. The code is surfaced per-application like the existing no-error/internal-error codes, so non-HTTP/3 applications are unchanged.

Fixes: #65441

An incoming HTTP/3 request stream rejected without any application
processing (the session has no stream consumer) is now reset with
H3_REQUEST_REJECTED so the peer learns the request was not processed,
per RFC 9114 section 4.1.1. The code is surfaced per-application like
the existing no-error and internal-error codes, so non-HTTP/3
applications are unchanged.

Fixes: nodejs#65441
Signed-off-by: Naman Trivedi <trivenay@amazon.com>
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/quic

@nodejs-github-bot nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. lib / src Issues and PRs related to general changes in the lib or src directory. needs-ci PRs that need a full CI run. labels Aug 20, 2026
@codecov

codecov Bot commented Aug 20, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.10%. Comparing base (5ba7e05) to head (a47916c).
⚠️ Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #65442      +/-   ##
==========================================
- Coverage   91.85%   90.10%   -1.75%     
==========================================
  Files         400      752     +352     
  Lines      179110   252339   +73229     
  Branches    27351    47454   +20103     
==========================================
+ Hits       164522   227382   +62860     
- Misses      14258    16254    +1996     
- Partials      330     8703    +8373     
Files with missing lines Coverage Δ
lib/internal/quic/quic.js 100.00% <100.00%> (ø)
lib/internal/quic/state.js 100.00% <100.00%> (ø)

... and 484 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.

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@trivikr trivikr added the quic Issues and PRs related to the QUIC implementation / HTTP/3. label Aug 20, 2026
@trivikr trivikr added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Aug 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs that have at least one approval, no pending requests for changes, and a CI started. c++ Issues and PRs that require attention from people who are familiar with C++. lib / src Issues and PRs related to general changes in the lib or src directory. needs-ci PRs that need a full CI run. quic Issues and PRs related to the QUIC implementation / HTTP/3.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

quic: reset rejected HTTP/3 request streams with H3_REQUEST_REJECTED

4 participants