René's URL Explorer Experiment


Title: stream/iter: BroadcastWriter.end() strands backpressured writes and truncates the broadcast · Issue #65333 · nodejs/node · GitHub

Open Graph Title: stream/iter: BroadcastWriter.end() strands backpressured writes and truncates the broadcast · Issue #65333 · nodejs/node

X Title: stream/iter: BroadcastWriter.end() strands backpressured writes and truncates the broadcast · Issue #65333 · nodejs/node

Description: Version main Platform N/A Subsystem stream What steps will reproduce the bug? import { setTimeout } from 'node:timers/promises'; import { broadcast } from 'node:stream/iter'; const { writer, broadcast: bc } = broadcast({ budget: 16384, b...

Open Graph Description: Version main Platform N/A Subsystem stream What steps will reproduce the bug? import { setTimeout } from 'node:timers/promises'; import { broadcast } from 'node:stream/iter'; const { writer, broadc...

X Description: Version main Platform N/A Subsystem stream What steps will reproduce the bug? import { setTimeout } from 'node:timers/promises'; import { broadcast } from 'node:stream/iter'; const ...

Opengraph URL: https://github.com/nodejs/node/issues/65333

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"stream/iter: BroadcastWriter.end() strands backpressured writes and truncates the broadcast","articleBody":"### Version\n\nmain\n\n### Platform\n\n```text\nN/A\n```\n\n### Subsystem\n\nstream\n\n### What steps will reproduce the bug?\n\n```js\nimport { setTimeout } from 'node:timers/promises';\nimport { broadcast } from 'node:stream/iter';\n\nconst { writer, broadcast: bc } = broadcast({\n  budget: 16384,\n  backpressure: 'unbounded',\n});\nconst reader = bc.push()[Symbol.asyncIterator]();\n\nawait writer.write(new Uint8Array(16384));\n\nconst pendingWrite = writer.write(Uint8Array.of(1));\nconst endPromise = writer.end();\n\nconsole.log('first read done:', (await reader.next()).done);\n\nconst writeState = await Promise.race([\n  pendingWrite.then(\n    () => 'resolved',\n    () => 'rejected',\n  ),\n  setTimeout(100, 'still pending'),\n]);\nconsole.log('blocked write:', writeState);\n\nconsole.log('second read done:', (await reader.next()).done);\nconsole.log('final read done:', (await reader.next()).done);\nconsole.log('end():', await endPromise);\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\nfirst read done: false\nblocked write: resolved\nsecond read done: false\nfinal read done: true\nend(): 16385\n```\n\nWrites queued before `end()` should remain ahead of end-of-stream. The pending write should be promoted when the first read frees capacity, and `end()` should resolve only after the consumer reaches the final end sentinel.\n\nAs per [§7.2.2, `Writer.write()`](https://iter-streams.proposal.wintertc.org/#writer-write):\n> “return a promise that resolves when the batch is transferred to the slots buffer.”\n\nAnd [§7.2.5, `Writer.end()` / `Writer.endSync()`](https://iter-streams.proposal.wintertc.org/#writer-end):\n> “signals end-of-stream and waits for buffered data to drain.”\n\n### What do you see instead?\n\n```console\nfirst read done: false\nblocked write: still pending\nsecond read done: true\nfinal read done: true\nend(): 16384\n```\n\nAfter `end()` marks the broadcast ended, freeing buffer capacity cannot promote the queued write. Its promise remains pending, the byte is never delivered, and `end()` reports only the first write.\n\n\n### Additional information\n\n_No response_","author":{"url":"https://github.com/trivikr","@type":"Person","name":"trivikr"},"datePublished":"2026-08-16T19:08:40Z","url":"https://github.com/nodejs/node/issues/65333"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:9059d08e-5c6d-ca5c-935c-cf5845139349
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idCE06:12AE65:336076:426E99:6AED1D94
html-safe-nonce224dda26ac646c361a84f8f82b879827f49c923d111e3becf3abf299f15cb03c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRTA2OjEyQUU2NTozMzYwNzY6NDI2RTk5OjZBRUQxRDk0IiwidmlzaXRvcl9pZCI6IjY3Mzk5MTE3OTA3ODAyOTI1MDAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac6b548fbf5c77f193d092eb3b6ff200636594b450bf7f4ba6625154f1cdaeb84b
hovercard-subject-tagissue:5165918797
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/65333/issue_layout
twitter:imagehttps://opengraph.githubassets.com/c81c0920ab27843fa03caf35808b6c62b2de0c77b8fab8786b7ab5d813ac88ed/nodejs/node/issues/65333
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/c81c0920ab27843fa03caf35808b6c62b2de0c77b8fab8786b7ab5d813ac88ed/nodejs/node/issues/65333
og:image:altVersion main Platform N/A Subsystem stream What steps will reproduce the bug? import { setTimeout } from 'node:timers/promises'; import { broadcast } from 'node:stream/iter'; const { writer, broadc...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernametrivikr
hostnamegithub.com
expected-hostnamegithub.com
Nonee3e0f7f63e50c6fe879198a93a0a023a648ecc0a5e9bc3b5e033ac57172237e6
turbo-cache-controlno-preview
go-importgithub.com/nodejs/node git https://github.com/nodejs/node.git
octolytics-dimension-user_id9950313
octolytics-dimension-user_loginnodejs
octolytics-dimension-repository_id27193779
octolytics-dimension-repository_nwonodejs/node
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id27193779
octolytics-dimension-repository_network_root_nwonodejs/node
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release707a24b346ac8a82878b9c084efaa38a997660cb
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/nodejs/node/issues/65333#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fissues%2F65333
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fissues%2F65333
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=nodejs%2Fnode
Reloadhttps://github.com/nodejs/node/issues/65333
Reloadhttps://github.com/nodejs/node/issues/65333
Reloadhttps://github.com/nodejs/node/issues/65333
nodejshttps://github.com/nodejs
nodehttps://github.com/nodejs/node
Codehttps://github.com/nodejs/node
Issues655 (655)https://github.com/nodejs/node/issues
Pull requests666 (666)https://github.com/nodejs/node/pulls
Actionshttps://github.com/nodejs/node/actions
Projectshttps://github.com/nodejs/node/projects
Security and qualityhttps://github.com/nodejs/node/security
Insightshttps://github.com/nodejs/node/pulse
https://github.com/nodejs/node
New issuehttps://github.com/login?return_to=https://github.com/nodejs/node/issues/65333
New issuehttps://github.com/login?return_to=https://github.com/nodejs/node/issues/65333
#65334https://github.com/nodejs/node/pull/65334
stream/iter: BroadcastWriter.end() strands backpressured writes and truncates the broadcasthttps://github.com/nodejs/node/issues/65333#top
#65334https://github.com/nodejs/node/pull/65334
https://github.com/trivikr
streamIssues and PRs related to Node.js streams.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22stream%22
https://github.com/trivikr
trivikrhttps://github.com/trivikr
on Aug 16, 2026https://github.com/nodejs/node/issues/65333#issue-5165918797
§7.2.2, Writer.write()https://iter-streams.proposal.wintertc.org/#writer-write
§7.2.5, Writer.end() / Writer.endSync()https://iter-streams.proposal.wintertc.org/#writer-end
trivikrhttps://github.com/trivikr
on Aug 16, 2026https://github.com/nodejs/node/issues/65333#event-29530139074
trivikrhttps://github.com/trivikr
streamIssues and PRs related to Node.js streams.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22stream%22
on Aug 16, 2026https://github.com/nodejs/node/issues/65333#event-29530139416
trivikrhttps://github.com/trivikr
on Aug 23, 2026https://github.com/nodejs/node/issues/65333#event-29880606494
stream: drain pending writes before broadcast endhttps://github.com/trivikr/node/commit/c28857e64c3bd55346f07582d134cee95091f8ad
c28857ehttps://github.com/trivikr/node/commit/c28857e64c3bd55346f07582d134cee95091f8ad
trivikrhttps://github.com/trivikr
completedhttps://github.com/nodejs/node/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
c28857ehttps://github.com/nodejs/node/commit/c28857e64c3bd55346f07582d134cee95091f8ad
on Aug 23, 2026https://github.com/nodejs/node/issues/65333#event-29880610967
aduh95https://github.com/aduh95
on Aug 25, 2026https://github.com/nodejs/node/issues/65333#event-30010194821
stream: drain pending writes before broadcast endhttps://github.com/nodejs/node/commit/ef7c8a879ab51b3f1b0591cc99ccf3859bb89540
ef7c8a8https://github.com/nodejs/node/commit/ef7c8a879ab51b3f1b0591cc99ccf3859bb89540
stream: drain pending writes before broadcast endhttps://github.com/nodejs/node/commit/dc51c7926e4f712b4c6e3cfd0d95468ecd570eb8
dc51c79https://github.com/nodejs/node/commit/dc51c7926e4f712b4c6e3cfd0d95468ecd570eb8
stream: drain pending writes before broadcast endhttps://github.com/nodejs/node/commit/32dbd80d7c6c0ded9237ef57749e4291e6dfa8ec
32dbd80https://github.com/nodejs/node/commit/32dbd80d7c6c0ded9237ef57749e4291e6dfa8ec
aduh95https://github.com/aduh95
on Sep 7, 2026https://github.com/nodejs/node/issues/65333#event-30681675394
stream: drain pending writes before broadcast endhttps://github.com/nodejs/node/commit/feb0d5773b5f282871ab109fdf3852187ce73c24
feb0d57https://github.com/nodejs/node/commit/feb0d5773b5f282871ab109fdf3852187ce73c24
stream: drain pending writes before broadcast endhttps://github.com/nodejs/node/commit/93d822bdc14efe5114a22ca6ebcb2ac2d14ee04f
93d822bhttps://github.com/nodejs/node/commit/93d822bdc14efe5114a22ca6ebcb2ac2d14ee04f
Sign up for freehttps://github.com/signup?return_to=https://github.com/nodejs/node/issues/65333
Sign in to commenthttps://github.com/login?return_to=https://github.com/nodejs/node/issues/65333
trivikrhttps://github.com/trivikr
streamIssues and PRs related to Node.js streams.https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3A%22stream%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.