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(h2): avoid pool fan-out during ALPN negotiation by mcollina · Pull Request #5799 · nodejs/undici

Conversation

@mcollina

@mcollina mcollina commented Sep 10, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Member

Fixes #4143.

Delay Pool connection fan-out while an HTTP/2-capable client is negotiating TLS/ALPN. Concurrent requests remain queued behind one protocol probe; after negotiation they multiplex over HTTP/2, while HTTP/1.1 restores normal connection fan-out.

This also covers repeated cold bursts after idle session reaping, preserves HTTP/1.1 concurrency, and updates the Agent and Pool documentation.

Sorry, something went wrong.

Uh oh!

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

All reactions
@mcollina
fix(h2): avoid pool fan-out during ALPN negotiation
7a64696
Signed-off-by: Matteo Collina <[email protected]>
@mcollina
mcollina requested review from ronag and trivikr September 10, 2026 15:05
@codecov-commenter

codecov-commenter commented Sep 10, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 89.26174% with 16 lines in your changes missing coverage. Please review.
✅ Project coverage is 93.50%. Comparing base (cb7373a) to head (7a64696).

Files with missing lines Patch % Lines
lib/dispatcher/pool-base.js 77.96% 13 Missing ⚠️
lib/dispatcher/pool.js 96.66% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5799      +/-   ##
==========================================
- Coverage   93.52%   93.50%   -0.03%     
==========================================
  Files         110      110              
  Lines       39415    39555     +140     
==========================================
+ Hits        36864    36986     +122     
- Misses       2551     2569      +18     

☔ 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.

gijs-martens
gijs-martens approved these changes Sep 10, 2026
View reviewed changes
@mcollina
mcollina requested a review from metcoder95 September 10, 2026 21:09
metcoder95
metcoder95 approved these changes Sep 11, 2026
View reviewed changes
@mcollina
mcollina merged commit cf3e133 into main Sep 11, 2026
66 of 67 checks passed

Uh oh!

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

@mcollina
mcollina deleted the fix/h2-pool-alpn-fanout branch September 11, 2026 09:32
@github-actions github-actions Bot mentioned this pull request Sep 14, 2026
[Release] v8.11.0 #5821
Closed
@vwong vwong mentioned this pull request Sep 15, 2026
chore: update tests blocking release #5828
Merged
This was referenced Sep 21, 2026
[Release] v8.11.0 #5848
Closed
[Release] v8.11.0 #5849
Merged
@mcollina mcollina mentioned this pull request Oct 8, 2026
fix(pool): keep caller async context for queued requests #5982
Merged
@timothyliu timothyliu mentioned this pull request Nov 3, 2026
Pool hangs forever after a request is rejected while the protocol probe is pending (fresh Pool / after clientTtl rotation) #6141
Closed
@MIbtehajNasar MIbtehajNasar mentioned this pull request Nov 3, 2026
test(pool): cover a protocol probe whose request is rejected before dispatch #6142
Merged
@EpicHigh EpicHigh mentioned this pull request Nov 6, 2026
fix(pool): release saturated h2 protocol probes after SETTINGS #6170
Merged
3 of 7 tasks
This was referenced Nov 20, 2026
chore: Give every write a server of its own when fetch gives up connecting. thenativeweb/eventsourcingdb-client-javascript#451
Merged
Concurrent requests to an origin whose TLS handshake stalls time out one after another since 8.11.0 #6238
Open
@Taiwudao Taiwudao mentioned this pull request Nov 21, 2026
fix(pool): fail requests queued behind a failed protocol probe together #6241
Open
3 of 5 tasks
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
@ronag ronag Awaiting requested review from ronag
+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.

Default pipelining to maxConcurrentStreams with allowH2

Uh oh!

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

4 participants

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