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 — fix(deduplicate): settle requests when composed with retry by mcollina · Pull Request #5817 · nodejs/undici

Conversation

@mcollina

@mcollina mcollina commented Sep 14, 2026

Copy link
Copy Markdown
Member

Fix requests remaining pending when deduplicate() is composed before retry().

Clean up pending entries before callbacks can redispatch, and allow errors thrown by response-end callbacks to reach retry handlers. Forward response failures to waiting handlers without treating them as consumer aborts, and defer completion while a waiting handler is paused.

Add regression coverage for both interceptor orders, concurrent requests, synchronous retry policies, retry exhaustion, and requests with different retry options.

Sorry, something went wrong.

Uh oh!

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

All reactions
@mcollina
fix(deduplicate): settle requests when composed with retry
02f3c83
Signed-off-by: Matteo Collina <[email protected]>
@codecov-commenter

codecov-commenter commented Sep 14, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 87.50000% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 93.52%. Comparing base (fb3d786) to head (957d49e).
⚠️ Report is 7 commits behind head on main.

Files with missing lines Patch % Lines
lib/handler/deduplication-handler.js 87.50% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5817      +/-   ##
==========================================
+ Coverage   93.50%   93.52%   +0.02%     
==========================================
  Files         110      110              
  Lines       39557    39591      +34     
==========================================
+ Hits        36987    37027      +40     
+ Misses       2570     2564       -6     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 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.
All reactions

Sorry, something went wrong.

Uh oh!

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

@mcollina
test(deduplicate): allow non-overlapping asynchronous retries
957d49e
Signed-off-by: Matteo Collina <[email protected]>
@mcollina
mcollina requested review from metcoder95 and trivikr September 15, 2026 08:24
metcoder95
metcoder95 approved these changes Sep 15, 2026
View reviewed changes
@mcollina
mcollina merged commit bee0138 into main Sep 15, 2026
38 checks passed

Uh oh!

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

@mcollina
mcollina deleted the fix/deduplicate-retry-settlement branch September 15, 2026 10:53
This was referenced Sep 21, 2026
[Release] v8.11.0 #5848
Closed
[Release] v8.11.0 #5849
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
@trivikr trivikr Awaiting requested review from trivikr

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 @codecov-commenter @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.