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

stream: async iterator stop read if destroyed by ronag · Pull Request #35640 · nodejs/node · GitHub

/ node Public

stream: async iterator stop read if destroyed - #35640

Closed
ronag wants to merge 1 commit into
nodejs:masterfrom
nxtedition:stream-readable-destroyed-async-iterator
Closed

stream: async iterator stop read if destroyed#35640
ronag wants to merge 1 commit into
nodejs:masterfrom
nxtedition:stream-readable-destroyed-async-iterator

Conversation

ronag commented Oct 14, 2020
edited
Loading

Copy link
Copy Markdown
Member

Fixes some compatibility issues where it is expected
that for await stops reading when the stream is
destroyed.

Refs: #34887

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

Fixes some compatibility issues where it is expected
that for await stops reading when the stream is
destroyed.

Refs: nodejs#34887

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/streams

ronag added stream Issues and PRs related to the stream subsystem. request-ci Add this label to start a Jenkins CI on a PR. labels Oct 14, 2020
github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Oct 14, 2020

Copy link
Copy Markdown
Collaborator

ronag requested review from lpinca and mcollina October 14, 2020 13:14

const iter = Readable.prototype[Symbol.asyncIterator].call(stream);
await iter.next();
await iter.next();

Copy link
Copy Markdown
Member Author

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

This test was modified in the original PR, this PR helps bring it back to what it was.

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 the author ready PRs that have at least one approval, no outstanding review comments, and a CI started. label Oct 14, 2020

Copy link
Copy Markdown
Contributor

We are looking at landing a backport on 14.x that includes this change. Can we please fast track this so we can keep 14.x and master in sync

MylesBorins added the fast-track PRs that do not need to wait for 48 hours to land. label Oct 15, 2020

Copy link
Copy Markdown
Member

+1 to fast track

MylesBorins commented Oct 15, 2020
edited
Loading

Copy link
Copy Markdown
Contributor

test-asan continues to fail here

GREEEEEEEN

Copy link
Copy Markdown
Contributor

Landed in 1d8ecd8

MylesBorins pushed a commit that referenced this pull request Oct 15, 2020
Fixes some compatibility issues where it is expected
that for await stops reading when the stream is
destroyed.

Refs: #34887

PR-URL: #35640
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
MylesBorins pushed a commit that referenced this pull request Oct 15, 2020
includes:

* stream: simpler and faster Readable async iterator
* stream: don't destroy on async iterator success
* stream: async iterator stop read if destroyed

PR-URL: #34887
Refs: #34035
Refs: #35122
Refs: #35640
Refs: #34680
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.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. 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.

7 participants


Back | FazBrowse Home | New Git URL