Skip to content

http2: don't throw when destroying socket proxy#64427

Open
mcollina wants to merge 1 commit into
nodejs:mainfrom
mcollina:http2-socket-proxy-destroy
Open

http2: don't throw when destroying socket proxy#64427
mcollina wants to merge 1 commit into
nodejs:mainfrom
mcollina:http2-socket-proxy-destroy

Conversation

@mcollina

Copy link
Copy Markdown
Member

Calling destroy() on the http2session.socket proxy now destroys the session instead of throwing ERR_HTTP2_NO_SOCKET_MANIPULATION, matching the streams contract that destroy() never throws (root cause behind nodejs/undici#5525).

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/http
  • @nodejs/http2
  • @nodejs/net

@nodejs-github-bot nodejs-github-bot added http2 Issues or PRs related to the http2 subsystem. needs-ci PRs that need a full CI run. labels Jul 11, 2026
Calling destroy() on the http2session.socket proxy now destroys the
session instead of throwing ERR_HTTP2_NO_SOCKET_MANIPULATION.

Refs: nodejs/undici#5525
Signed-off-by: Matteo Collina <hello@matteocollina.com>
@codecov

codecov Bot commented Jul 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.25%. Comparing base (8a3b11c) to head (fa57b72).

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #64427   +/-   ##
=======================================
  Coverage   90.24%   90.25%           
=======================================
  Files         741      741           
  Lines      241384   241384           
  Branches    45480    45484    +4     
=======================================
+ Hits       217844   217851    +7     
+ Misses      15097    15088    -9     
- Partials     8443     8445    +2     
Files with missing lines Coverage Δ
lib/internal/http2/core.js 94.81% <100.00%> (ø)

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

@trivikr trivikr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@mertcanaltin mertcanaltin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

http2 Issues or PRs related to the http2 subsystem. needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants