FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

stream: prevent pipeline hang with generator functions by debadree25 · Pull Request #47712 · nodejs/node · GitHub

/ node Public

stream: prevent pipeline hang with generator functions - #47712

Merged
nodejs-github-bot merged 2 commits into
nodejs:mainfrom
debadree25:ft/pipeline-hang-fix
Apr 27, 2023
Merged

stream: prevent pipeline hang with generator functions#47712
nodejs-github-bot merged 2 commits into
nodejs:mainfrom
debadree25:ft/pipeline-hang-fix

Conversation

Copy link
Copy Markdown
Contributor

In the previous implementation
we had

const cleanup = eos(writable, { readable: false }, resume);

which would have called resume() only when the stream ended thus resolving the promise over here

but for end: false eos would never call resume as the stream doesn't end, hence we wait() only if the stream is stated to end

Fixes: #47708

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/streams

debadree25 requested a review from ronag April 25, 2023 07:39
nodejs-github-bot added the needs-ci PRs that need a full CI run. label Apr 25, 2023

aduh95 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM if CI agrees

aduh95 added author ready PRs that have at least one approval, no outstanding review comments, and a CI started. request-ci Add this label to start a Jenkins CI on a PR. labels Apr 25, 2023
github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Apr 25, 2023

This comment was marked as outdated.

This comment was marked as outdated.

Copy link
Copy Markdown
Contributor Author

Seems CI agrees! 🎉

aduh95 added the commit-queue Add this label to land a pull request using GitHub Actions. label Apr 25, 2023
debadree25 added request-ci Add this label to start a Jenkins CI on a PR. commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. and removed commit-queue Add this label to land a pull request using GitHub Actions. labels Apr 25, 2023
github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Apr 25, 2023

This comment was marked as outdated.

This comment was marked as outdated.

Copy link
Copy Markdown
Collaborator

debadree25 added the commit-queue Add this label to land a pull request using GitHub Actions. label Apr 26, 2023
nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Apr 27, 2023
nodejs-github-bot merged commit f34a07d into nodejs:main Apr 27, 2023

Copy link
Copy Markdown
Collaborator

Landed in f34a07d

targos pushed a commit that referenced this pull request May 2, 2023
Fixes: #47708
PR-URL: #47712
Reviewed-By: Robert Nagy <ronagy@icloud.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Feng Yu <F3n67u@outlook.com>
targos mentioned this pull request May 2, 2023
targos pushed a commit that referenced this pull request May 3, 2023
Fixes: #47708
PR-URL: #47712
Reviewed-By: Robert Nagy <ronagy@icloud.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Feng Yu <F3n67u@outlook.com>
danielleadams pushed a commit that referenced this pull request Jul 6, 2023
Fixes: #47708
PR-URL: #47712
Reviewed-By: Robert Nagy <ronagy@icloud.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Feng Yu <F3n67u@outlook.com>
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 <ronagy@icloud.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Feng Yu <F3n67u@outlook.com>
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs that have at least one approval, no outstanding review comments, and a CI started. commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

stream: pipeline with option end=false doesn't finish

6 participants


Back | FazBrowse Home | New Git URL