Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34.2k
stream: prevent pipeline hang with generator functions#47712
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
nodejs-github-bot merged 2 commits into nodejs:main from debadree25:ft/pipeline-hang-fixApr 27, 2023
Merged
stream: prevent pipeline hang with generator functions #47712
nodejs-github-bot merged 2 commits into nodejs:main from debadree25:ft/pipeline-hang-fixApr 27, 2023
Uh oh!
There was an error while loading. Please reload this page.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Collaborator
nodejs-github-bot commented Apr 25, 2023
Review requested:
|
ronag approved these changes Apr 25, 2023
aduh95 approved these changes Apr 25, 2023
Contributor
aduh95 left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM if CI agrees
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
MemberAuthor
debadree25 commented Apr 25, 2023
Seems CI agrees! 🎉 |
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as outdated.
This comment was marked as outdated.
F3n67u approved these changes Apr 25, 2023
This comment was marked as outdated.
This comment was marked as outdated.
Collaborator
nodejs-github-bot commented Apr 25, 2023
36 tasks
35 tasks
Collaborator
nodejs-github-bot commented Apr 27, 2023
Landed in f34a07d |
29 tasks
yjl9903 pushed a commit to yjl9903/node that referenced this pull request Apr 28, 2023
Fixes: nodejs#47708 PR-URL: nodejs#47712 Reviewed-By: Robert Nagy <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Feng Yu <[email protected]>
yjl9903 pushed a commit to yjl9903/node that referenced this pull request Apr 28, 2023
Fixes: nodejs#47708 PR-URL: nodejs#47712 Reviewed-By: Robert Nagy <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Feng Yu <[email protected]>
32 tasks
yjl9903 pushed a commit to yjl9903/node that referenced this pull request Apr 29, 2023
Fixes: nodejs#47708 PR-URL: nodejs#47712 Reviewed-By: Robert Nagy <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Feng Yu <[email protected]>
This was referenced Apr 30, 2023
targos pushed a commit that referenced this pull request May 2, 2023
Fixes: #47708 PR-URL: #47712 Reviewed-By: Robert Nagy <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Feng Yu <[email protected]>
targos pushed a commit that referenced this pull request May 3, 2023
Fixes: #47708 PR-URL: #47712 Reviewed-By: Robert Nagy <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Feng Yu <[email protected]>
danielleadams pushed a commit that referenced this pull request Jul 6, 2023
Fixes: #47708 PR-URL: #47712 Reviewed-By: Robert Nagy <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Feng Yu <[email protected]>
MoLow pushed a commit to MoLow/node that referenced this pull request Jul 6, 2023
Fixes: nodejs#47708 PR-URL: nodejs#47712 Reviewed-By: Robert Nagy <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Feng Yu <[email protected]>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment
Labels
author readyPRs that have at least one approval, no pending requests for changes, and a CI started. commit-queue-squashAdd this label to instruct the Commit Queue to squash all the PR commits into the first one. needs-ciPRs that need a full CI run.
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.
In the previous implementation
we had
node/lib/internal/streams/pipeline.js
Line 126 in 32e478d
which would have called
resume()only when the stream ended thus resolving the promise over herenode/lib/internal/streams/pipeline.js
Line 143 in 32e478d
but for
end: falseeos would never call resume as the stream doesn't end, hence wewait()only if the stream is stated to endFixes: #47708