{{ message }}
stream: make finished try to wait for 'close'#32158
Closed
ronag wants to merge 2 commits into
Closed
Conversation
Member
Author
18c3de4 to
c13abc8
Compare
Member
Author
747fbf7 to
059b055
Compare
vweevers
reviewed
Mar 10, 2020
059b055 to
8f14903
Compare
9725ba8 to
2fc0856
Compare
ronag
commented
Mar 10, 2020
Member
Author
There was a problem hiding this comment.
!stream.readable || readable is for the case where the stream is Duplex, but we might not want to wait for 'end' in which case autoDestroy won't be called and 'close' won't be emitted. An example of this is:
await pipeline(readable, duplex)For the last argument duplex, pipeline will set readable: false explicitly for eos to indicate this.
2fc0856 to
c6cb45b
Compare
This comment has been minimized.
This comment has been minimized.
2 tasks
Member
|
@ronag I guess this is no longer blocked now, but needs a rebase? |
c6cb45b to
d244303
Compare
Member
|
@ronag I’m not sure if this is a new conflict, but the Github UI still says that there are some… also, when adding |
d244303 to
4c83a29
Compare
Collaborator
Collaborator
Collaborator
Member
Author
|
needs another @nodejs/tsc approval |
Collaborator
jasnell
reviewed
Mar 23, 2020
Collaborator
Member
Author
|
rebased to fix conflicts |
735f412 to
81bdea7
Compare
This comment has been minimized.
This comment has been minimized.
Pipeline uses eos which will invoke the callback on 'finish' and 'end' before all streams have been fully destroyed. Fixes: nodejs#32032
81bdea7 to
4f76b58
Compare
Collaborator
Collaborator
Collaborator
Collaborator
Collaborator
Collaborator
Member
Author
|
green CI & CITGM, waiting for another @nodejs/tsc approval |
addaleax
approved these changes
Mar 27, 2020
Member
4 tasks
4 tasks
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.

Pipeline uses eos which will invoke the callback
on 'finish' and 'end' before all streams have been
fully destroyed.
Fixes: #32032
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes