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

stream: fix fromAsyncGen by ronag · Pull Request #40499 · nodejs/node · GitHub

/ node Public

stream: fix fromAsyncGen - #40499

Closed
ronag wants to merge 1 commit into
nodejs:masterfrom
nxtedition:fix-40497
Closed

stream: fix fromAsyncGen#40499
ronag wants to merge 1 commit into
nodejs:masterfrom
nxtedition:fix-40497

Conversation

ronag commented Oct 18, 2021
edited
Loading

Copy link
Copy Markdown
Member

Fixes: #40497

The problem here is that the resolve does not get updated before yielding control back to the user, hence the user might call the wrong resolve and hang the pipeline.

ronag added stream Issues and PRs related to the stream subsystem. v16.x labels Oct 18, 2021
ronag requested a review from mcollina October 18, 2021 10:09
nodejs-github-bot added the needs-ci PRs that need a full CI run. label Oct 18, 2021

ronag commented Oct 18, 2021

Copy link
Copy Markdown
Member Author

@nodejs/streams

mcollina left a comment

Copy link
Copy Markdown
Member

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

ronag 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. and removed needs-ci PRs that need a full CI run. labels Oct 18, 2021
ronag requested a review from lpinca October 18, 2021 10:19

ronag commented Oct 18, 2021
edited
Loading

Copy link
Copy Markdown
Member Author

Credit to @kmamal for making me aware of this issue and writing a repro.

github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Oct 18, 2021

Copy link
Copy Markdown
Collaborator

nodejs-github-bot commented Oct 18, 2021
edited by ronag
Loading

Copy link
Copy Markdown
Collaborator

ronag commented Oct 19, 2021

Copy link
Copy Markdown
Member Author

@benjamingr @lpinca @jasnell would appreciate another review here so we can land it in the next release.

ronag commented Oct 19, 2021

Copy link
Copy Markdown
Member Author

Can we fast-track this so it can be included in 16.12 #40504 (comment)

ronag added the fast-track PRs that do not need to wait for 48 hours to land. label Oct 19, 2021

Copy link
Copy Markdown
Contributor

Fast-track has been requested by @ronag. Please 👍 to approve.

richardlau added the commit-queue Add this label to land a pull request using GitHub Actions. label Oct 19, 2021
github-actions Bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Oct 19, 2021

Copy link
Copy Markdown
Contributor

Landed in 2bed031...0f78d26

github-actions Bot closed this Oct 19, 2021
nodejs-github-bot pushed a commit that referenced this pull request Oct 19, 2021
Fixes: #40497

PR-URL: #40499
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
richardlau pushed a commit that referenced this pull request Oct 19, 2021
Fixes: #40497

PR-URL: #40499
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
targos pushed a commit that referenced this pull request Oct 20, 2021
Fixes: #40497

PR-URL: #40499
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
targos added a commit that referenced this pull request Oct 20, 2021
Notable changes:

Fixed distribution for native addon builds

This release fixes an issue introduced in Node.js v17.0.0, where some V8
headers were missing from the distributed tarball, making it impossible
to build native addons. These headers are now included.
#40526

Fixed stream issues
* Fixed a regression in `stream.promises.pipeline`, which was introduced
  in version 16.10.0, is fixed. It is now possible again to pass an
  array of streams to the function.
  #40193
* Fixed a bug in `stream.Duplex.from`, which didn't work properly when
  an async generator function was passed to it.
  #40499

PR-URL: #40535
targos added a commit that referenced this pull request Oct 20, 2021
Notable changes:

Fixed distribution for native addon builds

This release fixes an issue introduced in Node.js v17.0.0, where some V8
headers were missing from the distributed tarball, making it impossible
to build native addons. These headers are now included.
#40526

Fixed stream issues
* Fixed a regression in `stream.promises.pipeline`, which was introduced
  in version 16.10.0, is fixed. It is now possible again to pass an
  array of streams to the function.
  #40193
* Fixed a bug in `stream.Duplex.from`, which didn't work properly when
  an async generator function was passed to it.
  #40499

PR-URL: #40535
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. fast-track PRs that do not need to wait for 48 hours to land. stream Issues and PRs related to the stream subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Duplex.from failure

5 participants


Back | FazBrowse Home | New Git URL