Title: AbortSignal.any() keeps an AbortSignal.timeout() that has already fired alive forever · Issue #66611 · nodejs/node · GitHub
Open Graph Title: AbortSignal.any() keeps an AbortSignal.timeout() that has already fired alive forever · Issue #66611 · nodejs/node
X Title: AbortSignal.any() keeps an AbortSignal.timeout() that has already fired alive forever · Issue #66611 · nodejs/node
Description: Version v26.10.0 and v26.11.1. Platform Linux arm64. Subsystem lib (abortcontroller) What steps will reproduce the bug? Run node --expose-gc repro.mjs: // node --expose-gc e2.mjs const sleep = ms => new Promise(resolve => setTimeout(reso...
Open Graph Description: Version v26.10.0 and v26.11.1. Platform Linux arm64. Subsystem lib (abortcontroller) What steps will reproduce the bug? Run node --expose-gc repro.mjs: // node --expose-gc e2.mjs const sleep = ms =...
X Description: Version v26.10.0 and v26.11.1. Platform Linux arm64. Subsystem lib (abortcontroller) What steps will reproduce the bug? Run node --expose-gc repro.mjs: // node --expose-gc e2.mjs const sleep = ms =...
Opengraph URL: https://github.com/nodejs/node/issues/66611
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"AbortSignal.any() keeps an AbortSignal.timeout() that has already fired alive forever","articleBody":"### Version\n\nv26.10.0 and v26.11.1.\n\n### Platform\n\nLinux arm64.\n\n### Subsystem\n\nlib (abortcontroller)\n\n### What steps will reproduce the bug?\n\nRun `node --expose-gc repro.mjs`:\n\n```js\n// node --expose-gc e2.mjs\nconst sleep = ms => new Promise(resolve => setTimeout(resolve, ms));\nfor (const combine of [false, true]) {\n const refs = [];\n let fired = Array.from({ length: 200 }, () => AbortSignal.timeout(1));\n for (const signal of fired) refs.push(new WeakRef(signal));\n await sleep(50);\n if (combine) for (const signal of fired) AbortSignal.any([signal]);\n fired = undefined;\n for (let round = 0; round \u003c 3; round++) { await sleep(10); globalThis.gc(); }\n console.log(`combine=${combine}: ${refs.filter(ref => ref.deref() !== undefined).length}/200 fired timeouts alive`);\n}\n```\n\n### How often does it reproduce? Is there a required condition?\n\nAlways. The timeout must have fired before it is passed to `AbortSignal.any()`.\n\n### What is the expected behavior? Why is that the expected behavior?\n\n`combine=true: 1/200 fired timeouts alive`, the same as `combine=false`. A composite of a signal that has already aborted is aborted at once, and nothing is left to wait for, so nothing should keep the timeout alive.\n\n### What do you see instead?\n\n`combine=true: 200/200 fired timeouts alive`: every fired timeout passed to `AbortSignal.any()` stays reachable after collection.\n\n### Additional information\n\nIt looks as if the timeout is added to `gcPersistentSignals` (#57867) and never removed, since it will never fire again. Passing the same fired timeout to `new Request(url, { signal })` doesn't keep it alive.\n","author":{"url":"https://github.com/rinarakaki","@type":"Person","name":"rinarakaki"},"datePublished":"2026-10-08T17:28:26Z","url":"https://github.com/nodejs/node/issues/66611"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:bc76e2a6-f8be-f721-e236-f875f405969f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CCCA:1A4188:AC68D2:E50C95:6AED350A |
| html-safe-nonce | 3921a9d61fce44fce0f55497a3e27778183b643d575df0086df858afe3fc71ba |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQ0NBOjFBNDE4ODpBQzY4RDI6RTUwQzk1OjZBRUQzNTBBIiwidmlzaXRvcl9pZCI6Ijg1MTAxMTE3OTMzNzQxMTUwODIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | aef49b105924ca0f50bc27dc27a1f2dba521f355e57091c3ee6e92d0a9d676d9 |
| hovercard-subject-tag | issue:5766155784 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/66611/issue_layout |
| twitter:image | https://opengraph.githubassets.com/096947360a896edd1d0ad47a0db7b75ad7c36c0b9fac250669b6c1f61ec038dd/nodejs/node/issues/66611 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/096947360a896edd1d0ad47a0db7b75ad7c36c0b9fac250669b6c1f61ec038dd/nodejs/node/issues/66611 |
| og:image:alt | Version v26.10.0 and v26.11.1. Platform Linux arm64. Subsystem lib (abortcontroller) What steps will reproduce the bug? Run node --expose-gc repro.mjs: // node --expose-gc e2.mjs const sleep = ms =... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | rinarakaki |
| hostname | github.com |
| expected-hostname | github.com |
| None | e51d0b7b5ab34b1688c05b54c3ed17b8658b2fa9bca973a9c740683ccb12cf4a |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 59ebb7b901cc154ecc179a44f266fcf69f343b30 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width