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 — [v6.x] fix(retry): settle exposed body on terminal failure by mcollina · Pull Request #5778 · nodejs/undici

Conversation

@mcollina

@mcollina mcollina commented Sep 5, 2026

Copy link
Copy Markdown
Member

Summary

Adapt the response-ownership guard from e905b5b (fix(retry): settle exposed body on terminal failure) to the legacy v6 handler interface.

  • Do not forward a replacement response after an earlier attempt has already exposed one downstream.
  • Use the existing abort/error path to settle the exposed response on terminal failure.
  • Preserve forwarding and completion of an initial non-retryable response.
  • Add six handler-level regression cases covering terminal error propagation and initial-response compatibility.

This is an adapted backport, not a clean cherry-pick. It does not establish a new security classification or affected-version range.

Validation

  • Retry handler, retry agent, and retry interceptor tests: 38 passed on each of Node 18.20.8, 20.20.0, 22.22.1, and 24.18.1.
  • Complete interceptor suite: 112 passed on Node 24.18.1.
  • npm run lint and direct standard: passed.
  • npm run test:typescript: passed.
  • Syntax checks for both changed files, git diff --check, and npm pack --dry-run: passed.
  • Full npm test was attempted on Node 24.18.1 but did not complete: it reached the 10-minute local execution limit during the unit suite and reported no memory leak with TLS certificate errors as failing. No changes were made to that test, and the full suite is not claimed to pass.

Sorry, something went wrong.

Uh oh!

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

All reactions
@mcollina
fix(retry): settle exposed body on terminal failure
64726ad
Adapt the response-ownership guard from e905b5b to the v6 handler interface. Abort terminal attempts instead of replacing a response already exposed downstream, while preserving initial response forwarding.

Add handler-level regression coverage for terminal errors and initial non-retryable responses.
metcoder95
metcoder95 approved these changes Sep 10, 2026
View reviewed changes
gijs-martens
gijs-martens approved these changes Sep 11, 2026
View reviewed changes
@mcollina
mcollina merged commit 2a91fc8 into v6.x Sep 14, 2026
32 of 34 checks passed

Uh oh!

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

@mcollina
mcollina deleted the backport/retry-terminal-body-v6 branch September 14, 2026 08:47
@github-actions github-actions Bot mentioned this pull request Sep 24, 2026
[Release] v6.29.0 #5888
Merged
@mtrezza mtrezza mentioned this pull request Sep 26, 2026
refactor: Bump npm from 11.18.0 to 11.20.0 and undici from 7.24.6 to 7.30.0 parse-community/parse-server-api-mail-adapter#287
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

@metcoder95 metcoder95 metcoder95 approved these changes
+1 more reviewer
@gijs-martens gijs-martens gijs-martens approved these changes
Reviewers whose approvals may not affect merge requirements

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

@mcollina @metcoder95 @gijs-martens
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.