GeezerVison is showing github.com — deps: update nghttp2 to 1.69.0, with fixes for some integration issues by pimterry · Pull Request #62867 · nodejs/node
Conversation
pimterry
commented
Apr 21, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
See #62381 and #60661 for context.
This is a manual dep update due to changes in nghttp2 v1.67.0+ which now treats some stream-level errors as session errors, and internally sends GOAWAY frames to kill the connection (without calling the on_invalid_frame callback). That requires some fixes here to detect those internally triggered GOAWAYs and expose these as HTTP/2 session errors at the end of the core nghttp2 write loop.
Some of these changes will result in user-visible differences to how protocol errors are exposed in Node, moving some error events from the stream to the session, and exposing some errors where previously they were swallowed. After the changes in 1.69.0 (as opposed to 1.67 & 1.68) this only applies to low-level protocol failures like broken flow control or compression failures, not to HTTP validation errors more generally.
This is unfortunate, and in that context it's debatable whether this is a breaking change (new errors from the same traffic) or just a bugfix (we shouldn't silently swallow serious protocol errors) but we can't realistically avoid this if we want to keep nghttp2 up to date, and in some unbundled scenarios the latest nghttp2 will be used regardless. For anything non-trivial this shouldn't cause problems since session errors need to be handled by all applications to deal with existing common production issues like connection resets anyway. The changed behaviour only applies to connections that hit serious protocol errors, and doesn't change anything in normal expected flows.
See the test changes for some examples of how this changes behaviour in practice - the vast majority of h2 tests are unchanged, it's just a couple of specific invalid traffic cases that change. I've also added a new test as well to confirm specifically that we cover the new internally triggered GOAWAYs correctly, and tightened up some checks on the existing tests to confirm everything is working correctly there.
Fixes #60661
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Review requested:
- @nodejs/http2
- @nodejs/net
- @nodejs/security-wg
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This is a manual dep update due to changes in v1.67.0+ which require a
selection of changes to how we handle low-level protocol errors when
using the latest versions of nghttp2, changing both some src details and
updating some tests to match.
Signed-off-by: Tim Perry <[email protected]>
codecov
Bot
commented
Apr 21, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|
❌ Patch coverage is 87.50000% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 89.60%. Comparing base (a6e8368) to head (491986e).
⚠️ Report is 13 commits behind head on main.
Additional details and impacted files
@@ Coverage Diff @@
## main #62867 +/- ##
==========================================
- Coverage 89.62% 89.60% -0.03%
==========================================
Files 706 706
Lines 219140 219160 +20
Branches 41984 41986 +2
==========================================
- Hits 196415 196372 -43
- Misses 14618 14671 +53
- Partials 8107 8117 +10
... and 34 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.
pimterry
commented
Apr 21, 2026
•
edited by aduh95
Loading
Uh oh!
There was an error while loading. Please reload this page.
|
Shared libs build failed. Our nix setup uses a previous nghttp2 version, so the test changes here fail in that environment. I've never touched nix but I've pushed what I think is the correct solution to update our test env to the latest nghttp2 manually, since that nixpkgs is still using v1.67.1 🤞
The build failures here in that environment aren't anything unexpected, it's just two specific assertions on error codes & messages that differ, due to the changes described above.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Can we have the bot generate the nghttp2 update, and you can push the additional changes as a follow up commit in the same PR? That way, it's much easier to review
|
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.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
lib / src
Issues and PRs involving general changes in the lib/ or src/ directories.
needs-ci
PRs that need a full CI run.
Milestone
No milestone
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.
|