Skip to content

[v22.x] http2: detect streams abandoned by nghttp2 - #67219

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

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

Conversation

@mcollina

@mcollina mcollina commented Nov 3, 2026

Copy link
Copy Markdown
Member

Backport of #66641 to v22.x.

The commit cherry-picks without conflicts. Verified locally: the new test passes with the fix and times out without it on v22.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. v22.x Issues that can be reproduced on v22.x or PRs targeting the v22.x-staging branch. labels Nov 3, 2026
@mcollina mcollina closed this Nov 3, 2026
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. v22.x Issues that can be reproduced on v22.x or PRs targeting the v22.x-staging branch.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants