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

stream: fix duplexify premature destroy by ronag · Pull Request #45133 · nodejs/node · GitHub

/ node Public

stream: fix duplexify premature destroy - #45133

Closed
ronag wants to merge 2 commits into
nodejs:mainfrom
nxtedition:fix-44925
Closed

stream: fix duplexify premature destroy#45133
ronag wants to merge 2 commits into
nodejs:mainfrom
nxtedition:fix-44925

Conversation

ronag commented Oct 23, 2022

Copy link
Copy Markdown
Member

The duplexified Duplex should be autoDestroyed instead of prematurely destroyed when the readable and writable sides have finished without error.

Fixes: #44925

The duplexified Duplex should be autoDestroyed instead of
prematurely destroyed when the readable and writable sides
have finished without error.

Fixes: nodejs#44925
ronag requested a review from ErickWendel October 23, 2022 13:51

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/streams

ronag requested a review from mcollina October 23, 2022 13:51
nodejs-github-bot added the needs-ci PRs that need a full CI run. label Oct 23, 2022
ronag added stream Issues and PRs related to the stream subsystem. 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 23, 2022
github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Oct 23, 2022

Copy link
Copy Markdown
Collaborator

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

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 Oct 24, 2022
github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Oct 24, 2022

Copy link
Copy Markdown
Collaborator

xtx1130 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

In node v16 has the same code here. But why v16 don't have this issue?

ronag added the request-ci Add this label to start a Jenkins CI on a PR. label Oct 25, 2022
github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Oct 25, 2022

Copy link
Copy Markdown
Collaborator

ronag added the commit-queue Add this label to land a pull request using GitHub Actions. label Oct 27, 2022

ronag commented Oct 27, 2022

Copy link
Copy Markdown
Member Author

@mcollina what is our procedure to include these kind of PR's in readable-stream?

Copy link
Copy Markdown
Member

Once it ship in a version of Node (ideally the 18 series) I can open a PR update.

nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Oct 27, 2022
nodejs-github-bot added the commit-queue-failed An error occurred while landing this pull request using GitHub Actions. label Oct 27, 2022

Copy link
Copy Markdown
Collaborator
Commit Queue failed
- Loading data for nodejs/node/pull/45133
✔  Done loading data for nodejs/node/pull/45133
----------------------------------- PR info ------------------------------------
Title      stream: fix duplexify premature destroy (#45133)
Author     Robert Nagy  (@ronag)
Branch     ronag:fix-44925 -> nodejs:main
Labels     stream, author ready
Commits    2
 - stream: fix duplexify premature destroy
 - fixup
Committers 1
 - Robert Nagy 
PR-URL: https://github.com/nodejs/node/pull/45133
Fixes: https://github.com/nodejs/node/issues/44925
Reviewed-By: Matteo Collina 
Reviewed-By: Benjamin Gruenbaum 
Reviewed-By: Juan José Arboleda 
------------------------------ Generated metadata ------------------------------
PR-URL: https://github.com/nodejs/node/pull/45133
Fixes: https://github.com/nodejs/node/issues/44925
Reviewed-By: Matteo Collina 
Reviewed-By: Benjamin Gruenbaum 
Reviewed-By: Juan José Arboleda 
--------------------------------------------------------------------------------
   ⚠  Commits were pushed since the last review:
   ⚠  - fixup
   ℹ  This PR was created on Sun, 23 Oct 2022 13:51:44 GMT
   ✔  Approvals: 3
   ✔  - Matteo Collina (@mcollina) (TSC): https://github.com/nodejs/node/pull/45133#pullrequestreview-1152327819
   ✔  - Benjamin Gruenbaum (@benjamingr): https://github.com/nodejs/node/pull/45133#pullrequestreview-1152332503
   ✔  - Juan José Arboleda (@juanarbol): https://github.com/nodejs/node/pull/45133#pullrequestreview-1153558445
   ✔  Last GitHub CI successful
   ℹ  Last Full PR CI on 2022-10-25T14:51:07Z: https://ci.nodejs.org/job/node-test-pull-request/47472/
- Querying data for job/node-test-pull-request/47472/
   ✔  Last Jenkins CI successful
--------------------------------------------------------------------------------
   ✔  Aborted `git node land` session in /home/runner/work/node/node/.ncu
https://github.com/nodejs/node/actions/runs/3336681891

anonrig requested review from jasnell and xtx1130 October 27, 2022 13:03
juanarbol pushed a commit that referenced this pull request Oct 27, 2022
The duplexified Duplex should be autoDestroyed instead of
prematurely destroyed when the readable and writable sides
have finished without error.

Fixes: #44925

PR-URL: #45133
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>

Copy link
Copy Markdown
Member

Landed in b6eba6b

juanarbol closed this Oct 27, 2022
RafaelGSS pushed a commit that referenced this pull request Nov 1, 2022
The duplexified Duplex should be autoDestroyed instead of
prematurely destroyed when the readable and writable sides
have finished without error.

Fixes: #44925

PR-URL: #45133
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
RafaelGSS mentioned this pull request Nov 1, 2022
RafaelGSS pushed a commit that referenced this pull request Nov 10, 2022
The duplexified Duplex should be autoDestroyed instead of
prematurely destroyed when the readable and writable sides
have finished without error.

Fixes: #44925

PR-URL: #45133
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
danielleadams pushed a commit that referenced this pull request Dec 30, 2022
The duplexified Duplex should be autoDestroyed instead of
prematurely destroyed when the readable and writable sides
have finished without error.

Fixes: #44925

PR-URL: #45133
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
danielleadams pushed a commit that referenced this pull request Jan 3, 2023
The duplexified Duplex should be autoDestroyed instead of
prematurely destroyed when the readable and writable sides
have finished without error.

Fixes: #44925

PR-URL: #45133
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Juan José Arboleda <soyjuanarbol@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. commit-queue-failed An error occurred while landing this pull request using GitHub Actions. stream Issues and PRs related to the stream subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Duplex.from({ writable, readable }) breaks on backpressure

9 participants


Back | FazBrowse Home | New Git URL