GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Backport upgrade diagnostics lifecycle fixes to v6.x by BridgeAR · Pull Request #5833 · nodejs/undici

Conversation

@BridgeAR

@BridgeAR BridgeAR commented Sep 15, 2026

Copy link
Copy Markdown
Member

This relates to...

Backport of #5783 to v6.x.

Rationale

Successful CONNECT and protocol upgrades do not publish terminal request diagnostics. This retains subscriber state and request-body listeners for the upgraded socket lifetime.

Changes

Bug Fixes

  • Publish response headers and empty trailers for accepted upgrades.
  • Preserve upgrade handler and pre-response stream errors through the H1 and H2 transport owners.
  • Preserve v6's early HTTP/2 CONNECT handoff and raw-buffer headers while balancing stream accounting before handler callbacks.

Breaking Changes and Deprecations

N/A

Status

  • I have read and agreed to the Developer's Certificate of Origin
  • Tested
  • Benchmarked (optional)
  • Documented
  • Review ready
  • In review
  • Merge ready

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
BridgeAR added 2 commits September 15, 2026 09:58
@BridgeAR
fix: complete upgrade diagnostics lifecycle
bae1020
Successful CONNECT and protocol upgrades stop before Undici marks the request complete. Diagnostics subscribers retain request state, and streamed request-body listeners remain attached to the upgraded socket.

Publish the existing response lifecycle around accepted upgrades. Preserve the early HTTP/2 CONNECT handoff in v6, and terminate diagnostics if the stream fails before its response.

Refs: #5783
Signed-off-by: Ruben Bridgewater <[email protected]>
@BridgeAR
fix: preserve abort after upgrade handoff
24829dc
Completing upgrade requests suppresses late request errors, but v6 retains the abort callback as the transport cleanup owner after handoff. Returning early leaves upgraded sockets and HTTP/2 CONNECT streams open.

Signed-off-by: Ruben Bridgewater <[email protected]>
@BridgeAR
BridgeAR marked this pull request as ready for review September 15, 2026 20:01
metcoder95
metcoder95 approved these changes Sep 17, 2026
View reviewed changes
mcollina
mcollina approved these changes Sep 17, 2026
View reviewed changes

@mcollina mcollina left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

lgtm

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@mcollina
mcollina merged commit 6d44174 into v6.x Sep 17, 2026
53 of 54 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@mcollina
mcollina deleted the BridgeAR/2026-09-15-undici-v6-backport-audit branch September 17, 2026 09:04
@github-actions github-actions Bot mentioned this pull request Sep 24, 2026
[Release] v6.29.0 #5888
Merged
@lockfile-maintenance lockfile-maintenance Bot mentioned this pull request Oct 9, 2026
Lockfile maintenance knu/lockfile-maintenance-action#4
Merged
1 task
This was referenced Oct 24, 2026
refactor: Bump undici from 6.27.0 to 6.29.1 and 7.28.0 to 7.30.1 parse-community/node-apn#226
Merged
refactor: Bump undici from 6.27.0 to 6.29.1 and 7.28.0 to 7.30.1 parse-community/Parse-SDK-dotNET#436
Merged
refactor: Bump undici from 6.27.0 to 6.29.1 and 7.28.0 to 7.30.1 parse-community/parse-server-example#947
Merged
refactor: Bump undici from 6.28.1 to 6.29.1, 7.29.1 to 7.30.1 and 7.30.0 to 7.30.1 parse-community/parse-server-sqs-mq-adapter#460
Merged
fix: Bump undici from 6.28.1 to 6.29.1 and 7.29.1 to 7.30.1 parse-community/parse-server-push-adapter#636
Merged
refactor: Bump undici from 6.28.1 to 6.29.1, 7.29.1 to 7.30.1 and 7.30.0 to 7.30.1 parse-community/parse-dashboard#3510
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@mcollina mcollina mcollina approved these changes
@metcoder95 metcoder95 metcoder95 approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@BridgeAR @mcollina @metcoder95
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.