Title: stream/iter: per-consumer AbortSignal is ignored by broadcast.push() and share.pull() fast path · Issue #63302 · nodejs/node · GitHub
Open Graph Title: stream/iter: per-consumer AbortSignal is ignored by broadcast.push() and share.pull() fast path · Issue #63302 · nodejs/node
X Title: stream/iter: per-consumer AbortSignal is ignored by broadcast.push() and share.pull() fast path · Issue #63302 · nodejs/node
Description: Version 26.1.0 Platform macOS 26.5.0 Subsystem stream What steps will reproduce the bug? import { setTimeout as delay } from "node:timers/promises"; import { broadcast, share } from "node:stream/iter"; async function check(label, next) {...
Open Graph Description: Version 26.1.0 Platform macOS 26.5.0 Subsystem stream What steps will reproduce the bug? import { setTimeout as delay } from "node:timers/promises"; import { broadcast, share } from "node:stream/it...
X Description: Version 26.1.0 Platform macOS 26.5.0 Subsystem stream What steps will reproduce the bug? import { setTimeout as delay } from "node:timers/promises"; import { broadcast, share } from "...
Opengraph URL: https://github.com/nodejs/node/issues/63302
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"stream/iter: per-consumer AbortSignal is ignored by broadcast.push() and share.pull() fast path","articleBody":"### Version\n\n26.1.0\n\n### Platform\n\n```text\nmacOS 26.5.0\n```\n\n### Subsystem\n\nstream\n\n### What steps will reproduce the bug?\n\n```js\nimport { setTimeout as delay } from \"node:timers/promises\";\nimport { broadcast, share } from \"node:stream/iter\";\n\nasync function check(label, next) {\n console.log(\n await Promise.race([\n next.then(\n (value) =\u003e `${label}: settled ${JSON.stringify(value)}`,\n (error) =\u003e `${label}: rejected ${error?.name ?? error}`,\n ),\n delay(50, `${label}: still pending`),\n ]),\n );\n}\n\n{\n const ac = new AbortController();\n const { broadcast: bc } = broadcast();\n const it = bc.push({ signal: ac.signal })[Symbol.asyncIterator]();\n\n const next = it.next();\n ac.abort(new Error(\"abort\"));\n\n await check(\"broadcast.push({ signal }).next()\", next);\n}\n\n{\n const ac = new AbortController();\n const shared = share(\n (async function* never() {\n await new Promise(() =\u003e {});\n })(),\n );\n const it = shared.pull({ signal: ac.signal })[Symbol.asyncIterator]();\n\n const next = it.next();\n ac.abort(new Error(\"abort\"));\n\n await check(\"share.pull({ signal }).next()\", next);\n}\n```\n\n### How often does it reproduce? Is there a required condition?\n\nAlways\n\n### What is the expected behavior? Why is that the expected behavior?\n\n```console\nbroadcast.push({ signal }).next(): rejected Error\nshare.pull({ signal }).next(): rejected Error\n```\n\n### What do you see instead?\n\n```console\nbroadcast.push({ signal }).next(): still pending\nshare.pull({ signal }).next(): still pending\n```\n\n### Additional information\n\n_No response_","author":{"url":"https://github.com/trivikr","@type":"Person","name":"trivikr"},"datePublished":"2026-05-14T04:23:01.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/63302/node/issues/63302"}
| 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:5550f79d-a927-ae8c-1166-65129762845e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D8C8:3E67A5:F91D96:15ACCEC:6A4E8D60 |
| html-safe-nonce | d5467971c81f182159645184abc19900c4e9e130e7b12d3a8fb331a38b337061 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOEM4OjNFNjdBNTpGOTFEOTY6MTVBQ0NFQzo2QTRFOEQ2MCIsInZpc2l0b3JfaWQiOiI2NzQ5NDM5NTQ3NTIyNzc4NTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 74595cd6c9efb6ea171339b00cbc817303263570827a49e4f390200e4d5ddb4d |
| hovercard-subject-tag | issue:4443140342 |
| 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/63302/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e0fc16d7425a4646a369fd9a51dd53593370b9de08f9ef1baffdc9a78dc5d463/nodejs/node/issues/63302 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e0fc16d7425a4646a369fd9a51dd53593370b9de08f9ef1baffdc9a78dc5d463/nodejs/node/issues/63302 |
| og:image:alt | Version 26.1.0 Platform macOS 26.5.0 Subsystem stream What steps will reproduce the bug? import { setTimeout as delay } from "node:timers/promises"; import { broadcast, share } from "node:stream/it... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | trivikr |
| hostname | github.com |
| expected-hostname | github.com |
| None | 41b6ab3ba6d20a71766ac245b5a4a94c6fc672a9cd4da7d44c1b33ab8bf6a21c |
| 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 | e6a744804e8e70f97b4d5a18a94dcc63db22f97a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width