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 — [v7.x] perf(h1): drop idle-socket timer floor with a ref'd setImmediate (#5707) by mcollina · Pull Request #5769 · nodejs/undici

Conversation

@mcollina

@mcollina mcollina commented Sep 4, 2026

Copy link
Copy Markdown
Member

Backport of #5707 to v7.x. Refs #5731.

Sequential keep-alive reuse on HTTP/1.1 pays Node's ~1ms setTimeout(0) floor on every request since the idle-socket validation introduced for GHSA-35p6-xmwp-9g52, which turns a loopback fetch() loop from ~5000 rps into ~650 rps. This switches the deferral to a ref'd setImmediate, exactly as on main: the validation still runs after the poll phase so pending bytes, FIN or RST on the idle socket are observed before the next request is written, without the timer floor and without the unref'd-Immediate stall from #5600.

Measured on this branch with the issue's repro (Node 24.18, loopback, arrayBuffer() consumed per request): ~650 rps before, ~5200 rps after.

🤖 Generated with Claude Code

https://claude.ai/code/session_01N2SCPUfzVYWJTvtVwZ3AYV

Sorry, something went wrong.

Uh oh!

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

All reactions
@anonrig @mcollina
perf(h1): drop idle-socket timer floor with a ref'd setImmediate (#5707)
9adef28
(cherry picked from commit 8c9182e)
Signed-off-by: Matteo Collina <[email protected]>
@mcollina mcollina mentioned this pull request Sep 4, 2026
fetch(): sequential keep-alive loopback requests ~45x slower than npm undici 7.16 on the SAME runtime (regression window 7.17-7.29) #5731
Closed
@codecov-commenter

codecov-commenter commented Sep 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.15%. Comparing base (a03b46a) to head (9adef28).

Additional details and impacted files
@@            Coverage Diff             @@
##             v7.x    #5769      +/-   ##
==========================================
- Coverage   93.17%   93.15%   -0.03%     
==========================================
  Files         112      112              
  Lines       36906    36914       +8     
==========================================
- Hits        34387    34386       -1     
- Misses       2519     2528       +9     

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

metcoder95
metcoder95 approved these changes Sep 4, 2026
View reviewed changes
@mcollina
mcollina merged commit f57411b into v7.x Sep 4, 2026
36 checks passed

Uh oh!

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

@mcollina
mcollina deleted the backport-5707-to-v7.x branch September 4, 2026 08:57
@github-actions github-actions Bot mentioned this pull request Sep 4, 2026
[Release] v7.29.1 #5772
Merged
This was referenced Sep 23, 2026
refactor: Bump undici from 7.28.0 to 7.29.1 parse-community/Parse-SDK-JS#3110
Merged
refactor: Bump undici from 6.27.0 to 6.28.1 parse-community/parse-dashboard#3460
Merged
meta-codesync Bot pushed a commit to meta/memlab that referenced this pull request Sep 29, 2026
@dependabot @meta-codesync
chore(deps): Bump undici from 7.29.0 to 7.30.0 in /website (#155)
408f91a
Summary:
Bumps [[ https://github.com/nodejs/undici | undici ]] from 7.29.0 to 7.30.0 in the memlab `website/` workspace. `yarn.lock` change only; it also picks up the 7.29.1 security release.

**v7.30.0**
- fix: selectively re-enable SIMD for ppc64 ([[ nodejs/undici#5794 | #5794 ]])
- Backport upgrade diagnostics lifecycle fixes ([[ nodejs/undici#5783 | #5783 ]])
- fix: honor backpressure in the decompression interceptor ([[ nodejs/undici#5837 | #5837 ]])
- fix: close rejected HTTP/2 WebSocket streams ([[ nodejs/undici#5876 | #5876 ]])
- test(fetch): make pull-dont-push exceed any socket buffer ([[ nodejs/undici#5889 | #5889 ]])

**v7.29.1 — security fixes**

High severity:
- [[ GHSA-w293-vg96-wgc3 | GHSA-w293-vg96-wgc3 ]]: `BalancedPool` could drop function-valued connection options, including custom TLS certificate validation callbacks, when cloning its configuration
- [[ GHSA-rfgv-xxqx-mfg5 | GHSA-rfgv-xxqx-mfg5 ]]: a WebSocket server selecting a subprotocol when none was requested caused an uncaught `TypeError` that could terminate the process

Medium severity:
- [[ GHSA-3wwx-pv8p-q78v | GHSA-3wwx-pv8p-q78v ]]: a permessage-deflate payload over the decompression limit could emit an unhandled zlib error and terminate the process
- [[ GHSA-rx4f-c7p8-82vq | GHSA-rx4f-c7p8-82vq ]]: an unclean `WebSocketStream` close with a locked writable stream could create an unobserved rejected promise
- [[ GHSA-2jfj-6hjv-fm6j | GHSA-2jfj-6hjv-fm6j ]]: shared caches could store and replay responses containing `Set-Cookie`, disclosing one user's cookies to another caller
- [[ GHSA-3xpg-4rpp-hhhm | GHSA-3xpg-4rpp-hhhm ]]: the decompression interceptor did not bound decoded output; every stage is now limited to 64 MiB by default, configurable via `maxSize`
- [[ GHSA-pmjh-fq2x-6v4x | GHSA-pmjh-fq2x-6v4x ]]: a terminal retry failure after response headers were exposed could orphan the response body and hang consumers

Low severity:
- [[ GHSA-8436-99hf-9mmv | GHSA-8436-99hf-9mmv ]]: cache interceptors could store and replay responses to unsafe methods such as `POST` or `DELETE`
- [[ GHSA-2gqq-gqf2-x968 | GHSA-2gqq-gqf2-x968 ]]: the dump interceptor could treat an oversized chunked response without `Content-Length` as successfully truncated
- [[ GHSA-r53p-7pc4-xj5r | GHSA-r53p-7pc4-xj5r ]]: the retry interceptor could concatenate a resumed response with inconsistent framing, enabling response splitting or corruption

**v7.29.1 — other changes**
- fix(h2): honour `headersTimeout` ([[ nodejs/undici#5604 | #5604 ]])
- fix(h2): keep the connection ref'd while requests are outstanding ([[ nodejs/undici#5605 | #5605 ]])
- fix(h2): retire the request that completed, not the head of the queue ([[ nodejs/undici#5618 | #5618 ]])
- fix(h2): settle a request whose stream is cancelled ([[ nodejs/undici#5607 | #5607 ]])
- fix(h2): handle GOAWAY for CONNECT streams ([[ nodejs/undici#5640 | #5640 ]])
- perf: reduce `EventSourceStream` parser allocations ([[ nodejs/undici#5646 | #5646 ]])
- perf(h1): drop the idle-socket timer floor with a ref'd `setImmediate` ([[ nodejs/undici#5769 | #5769 ]])
- CI only: drop Node.js 26 from the shared-builtin build ([[ nodejs/undici#5592 | #5592 ]]); raise the Windows workflow timeout ([[ nodejs/undici#5621 | #5621 ]])

Full changelog: [[ nodejs/undici@v7.29.0...v7.30.0 | v7.29.0...v7.30.0 ]]

Opened by Dependabot. Comment `dependabot rebase` on the GitHub PR to resolve conflicts; do not hand-edit the PR branch.

Pull Request resolved: #155

Differential Revision: D122269178

Pulled By: JacksonGL

fbshipit-source-id: 56fb568c08248253c483c6b44b1175af4a6b6d0c
This was referenced Oct 9, 2026
fix(ci): Dependency Unblock Check の probe 後の GitHub API 呼び出しを再試行し fetch failed の cause を出す kmryst/idp-golden-path#322
Closed
fix(ci): Dependency Unblock Check の probe 後の GitHub API 呼び出しを再試行する kmryst/idp-golden-path#323
Merged
GitHub Actions・ローカル・本番コンテナ・skeleton で使う Node.js のバージョンの正本・固定の精度・更新運用を検討する kmryst/idp-golden-path#325
Open
ci: idp-golden-path の reusable workflow 参照を v1.7.1 から v1.7.2 に上げる kmryst/ticket-c2c-platform#566
Closed
ci: idp-golden-path の reusable workflow 参照を v1.7.1 から v1.7.2 に上げる kmryst/ticket-c2c-platform#567
Merged
kmryst added a commit to kmryst/ticket-c2c-platform that referenced this pull request Oct 13, 2026
@kmryst @claude
ci: idp-golden-path の reusable workflow 参照を v1.7.1 から v1.7.2 に上げる (#567)
04c33ee
v1.7.2 は Dependency Unblock Check の評価器で、probe 後の GitHub API の GET が
Node.js 24.21.0(undici 7.29.1、nodejs/undici#5769)で閉じられた keep-alive 接続に
書き込んで fetch failed(EPIPE)になる不具合を、GET の 1 回再試行で修正している
(idp-golden-path #322 / PR #323、#326 / PR #328)。呼び出し側で UNBLOCKED になると
この経路を通るため、v1.7.1 のままでは ignore が外せる週に機構の故障として落ちる。

- @v1.7.1 に固定していた 9 箇所(7 ファイル)を @v1.7.2 に更新する
- タグ固定の形式は維持し、@v1 参照の 5 本は変更しない
- v1.7.1 -> v1.7.2 で inputs / secrets / outputs / permissions / 既存 job 名に変更はない

Refs #566


Claude-Session: https://claude.ai/code/session_01PPszW4Rvm6ppEAvUWbRP6j

Co-authored-by: Claude Opus 5.5 <[email protected]>
@mcollina mcollina mentioned this pull request Oct 16, 2026
fetch may try to use a closed connection #3492
Closed
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 7.24.6 to 7.30.1 parse-community/Parse-SDK-Flutter#1179
Merged
@automatiq-gh automatiq-gh Bot mentioned this pull request Oct 31, 2026
fix(sdks): clear undici, fast-uri, js-yaml, brace-expansion, humanfs advisories Quovy/OpenSandbox#8
Closed
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

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.

4 participants

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