Title: stream/iter: pipeTo retries accepted PushWriter writes under block backpressure · Issue #63296 · nodejs/node · GitHub
Open Graph Title: stream/iter: pipeTo retries accepted PushWriter writes under block backpressure · Issue #63296 · nodejs/node
X Title: stream/iter: pipeTo retries accepted PushWriter writes under block backpressure · Issue #63296 · nodejs/node
Description: Version 26.1.0 Platform macOS 26.5.0 Subsystem stream What steps will reproduce the bug? import { pipeTo, push, text } from "node:stream/iter"; const enc = new TextEncoder(); async function repro(source) { const { writer, readable } = pu...
Open Graph Description: Version 26.1.0 Platform macOS 26.5.0 Subsystem stream What steps will reproduce the bug? import { pipeTo, push, text } from "node:stream/iter"; const enc = new TextEncoder(); async function repro(s...
X Description: Version 26.1.0 Platform macOS 26.5.0 Subsystem stream What steps will reproduce the bug? import { pipeTo, push, text } from "node:stream/iter"; const enc = new TextEncoder(); async functi...
Opengraph URL: https://github.com/nodejs/node/issues/63296
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"stream/iter: pipeTo retries accepted PushWriter writes under block backpressure","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 { pipeTo, push, text } from \"node:stream/iter\";\n\nconst enc = new TextEncoder();\n\nasync function repro(source) {\n const { writer, readable } = push({\n highWaterMark: 1,\n backpressure: \"block\",\n });\n\n const piping = pipeTo(source(), writer);\n\n // Let pipeTo() fill the PushWriter queue before the reader drains it.\n await new Promise(setImmediate);\n\n const output = await text(readable);\n await piping;\n return output;\n}\n\nasync function* writevSource() {\n yield [enc.encode(\"ab\")];\n yield [enc.encode(\"c\"), enc.encode(\"d\")];\n}\n\nasync function* writeSource() {\n yield [enc.encode(\"a\")];\n yield [enc.encode(\"b\")];\n}\n\nconsole.log(await repro(writevSource)); // actual: abcdcd, expected: abcd\nconsole.log(await repro(writeSource)); // actual: abbb, expected: ab\n```\n\nRun with\n```console\nnode --experimental-stream-iter repro.js\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```\nabcd\nab\n```\n\n### What do you see instead?\n\n```\nabcdcd\nabbb\n```\n\n\n### Additional information\n\n_No response_","author":{"url":"https://github.com/trivikr","@type":"Person","name":"trivikr"},"datePublished":"2026-05-14T02:04:24.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/63296/node/issues/63296"}
| 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:a99db0c0-6f3f-441a-e6e6-ec205f4a4e94 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9AF4:2C37E4:1118182:18FC035:6A4E38FC |
| html-safe-nonce | 81c35c5e650c9eef4a0bdf4558723fd5aea6aa3c97c8c22aca53e6a46de47a1a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QUY0OjJDMzdFNDoxMTE4MTgyOjE4RkMwMzU6NkE0RTM4RkMiLCJ2aXNpdG9yX2lkIjoiMzM3NDE2NzU2Njk3Njk1NjY2OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 6d98144a9dd00dc5f25b0e580935c9f2c9aa5a8a94fd39a4c99b5550802187ac |
| hovercard-subject-tag | issue:4442520053 |
| 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/63296/issue_layout |
| twitter:image | https://opengraph.githubassets.com/00217b4955ad04b1f17ad80d20c432cf0352cf8c188f90ac90343c02379abeaf/nodejs/node/issues/63296 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/00217b4955ad04b1f17ad80d20c432cf0352cf8c188f90ac90343c02379abeaf/nodejs/node/issues/63296 |
| og:image:alt | Version 26.1.0 Platform macOS 26.5.0 Subsystem stream What steps will reproduce the bug? import { pipeTo, push, text } from "node:stream/iter"; const enc = new TextEncoder(); async function repro(s... |
| 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 | 030096ee0db095447bfe77409d33bfac127ca7128299c58deef27c52eaa1b1f0 |
| 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 | 42a6d378d7587a44c93aca255096cd66b7c8eb2d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width