Skip to content

[v24.x] http2: detect streams abandoned by nghttp2 - #67221

Closed
mcollina wants to merge 1 commit into
nodejs:v24.x-stagingfrom
mcollina:backport-66641-v24.x
Closed

mcollina wants to merge 1 commit into
nodejs:v24.x-stagingfrom
mcollina:backport-66641-v24.x

Conversation

@mcollina

@mcollina mcollina commented Nov 3, 2026

Copy link
Copy Markdown
Member

Backport of #66641 to v24.x.

The commit cherry-picks without conflicts. Verified locally: the new test passes with the fix and times out without it on v24.x-staging.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Sfj4nDjYpZJaeuUs7tqFfV

When a peer sends GOAWAY(NO_ERROR), the session starts a graceful close
on its own, which disarmed the detection of nghttp2 internally
terminating the session after a protocol error. Instead, also treat it
as an internal termination when nghttp2 no longer wants to read or
write while we still have open streams.

Signed-off-by: Matteo Collina <hello@matteocollina.com>
PR-URL: nodejs#66641
Reviewed-By: Tim Perry <pimterry@gmail.com>
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/http2
  • @nodejs/net

@nodejs-github-bot nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. http2 Issues and PRs related to the http2 subsystem. needs-ci PRs that need a full CI run. v24.x Issues that can be reproduced on v24.x or PRs targeting the v24.x-staging branch. labels Nov 3, 2026
@mcollina mcollina closed this Nov 3, 2026
@codecov

codecov Bot commented Nov 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.41%. Comparing base (9e39360) to head (6e51ac8).
⚠️ Report is 862 commits behind head on v24.x-staging.

Additional details and impacted files
@@                Coverage Diff                @@
##           v24.x-staging   #67221      +/-   ##
=================================================
+ Coverage          90.31%   90.41%   +0.10%     
=================================================
  Files                711      717       +6     
  Lines             228425   240612   +12187     
  Branches           43160    45911    +2751     
=================================================
+ Hits              206293   217540   +11247     
- Misses             14090    14520     +430     
- Partials            8042     8552     +510     
Files with missing lines Coverage Δ
src/node_http2.cc 81.96% <100.00%> (-0.13%) ⬇️
src/node_http2.h 92.00% <ø> (+0.38%) ⬆️

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

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

Labels

c++ Issues and PRs that require attention from people who are familiar with C++. http2 Issues and PRs related to the http2 subsystem. needs-ci PRs that need a full CI run. v24.x Issues that can be reproduced on v24.x or PRs targeting the v24.x-staging branch.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants