GeezerVison is showing github.com — stream: settle pending stream iter reads on return by trivikr · Pull Request #63521 · nodejs/node
Conversation
This updates stream/iter cleanup so pending next() calls are settled when
a consumer calls return().
Previously, push() and broadcast() could leave a pending next() promise
unresolved if return() was called before any chunk was written. The cleanup
paths now resolve those pending reads with { done: true, value: undefined }.
Regression coverage was added for both push() and broadcast().
Fixes: #63519
Assisted-by: openai:gpt-5.5
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
codecov
Bot
commented
May 23, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|
❌ Patch coverage is 37.50000% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 90.31%. Comparing base (8257091) to head (f4a87a4).
Additional details and impacted files
@@ Coverage Diff @@
## main #63521 +/- ##
==========================================
- Coverage 90.32% 90.31% -0.01%
==========================================
Files 730 730
Lines 234671 234679 +8
Branches 43946 43950 +4
==========================================
- Hits 211965 211954 -11
- Misses 14423 14436 +13
- Partials 8283 8289 +6
... and 29 files with indirect coverage changes
🚀 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.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
trivikr
added
author ready
PRs with CI started, the required approvals, and no outstanding review comments.
and removed
author ready
PRs with CI started, the required approvals, and no outstanding review comments.
labels
May 24, 2026
This comment was marked as outdated.
trivikr
added
request-ci
Add this label to start a Jenkins CI on a PR. Only starts once the PR has an approving review.
author ready
PRs with CI started, the required approvals, and no outstanding review comments.
labels
May 27, 2026
Resolve pending next() calls when stream/iter push and broadcast
consumers are returned, so the promises do not remain pending after
iterator cleanup.
Fixes: nodejs#63519
Signed-off-by: Kamat, Trivikram <[email protected]>
Assisted-by: openai:gpt-5.5
|
The bug in push was fixed in #63555, when fixing for iterator.throw()
I posted a new broadcast only specific PR at #63603
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Reviewers
jasnell
jasnell approved these changes
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
author ready
PRs with CI started, the required approvals, and no outstanding review comments.
needs-ci
PRs that need a full CI run.
request-ci
Add this label to start a Jenkins CI on a PR. Only starts once the PR has an approving review.
stream
Issues and PRs related to Node.js streams.
Milestone
No milestone
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.
|