[v13.x backport] stream: don't destroy final readable stream in pipeline#32111
Closed
ronag wants to merge 1 commit intonodejs:v13.x-stagingfrom
Closed
[v13.x backport] stream: don't destroy final readable stream in pipeline#32111ronag wants to merge 1 commit intonodejs:v13.x-stagingfrom
ronag wants to merge 1 commit intonodejs:v13.x-stagingfrom
Conversation
Member
Author
|
Note that the base PR (#32110) has NOT landed yet. I'm just preparing this in order to fast track. I'm not sure what the procedure here is and whether this can land first. |
2ece1ad to
0acdc6b
Compare
This comment has been minimized.
This comment has been minimized.
0acdc6b to
276bb79
Compare
This comment has been minimized.
This comment has been minimized.
276bb79 to
db54b58
Compare
db54b58 to
e91dc3b
Compare
If the last stream in a pipeline is still usable/readable don't destroy it to allow further composition. Fixes: nodejs#32105 Backport-PR-URL: nodejs#32111
e91dc3b to
07228c6
Compare
This comment has been minimized.
This comment has been minimized.
Member
Author
Collaborator
Member
|
There may be an edge case where the source is an IncomingMessage, and in that case the connection will be destroyed after the response has gracefully ended. This will cause to create new connection every time you make a new request. But that should be fixed in As it should destroy the socket only if the This PR is good to merge IMO. |
Member
Author
|
FYA: @MylesBorins @codebytere |
Member
Author
|
@nodejs/streams PTAL, this PR (and #32110) needs another approval and should preferably land as soon as possible as it is affecting the ecosystem. |
2 tasks
This was referenced Mar 8, 2020
Contributor
Merged
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
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.
If the last stream in a pipeline is still usable/readable
don't destroy it to allow further composition.
Fixes: #32105
Refs: #32110
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes