stream: make finished try to wait for 'close'#32158
stream: make finished try to wait for 'close'#32158ronag wants to merge 2 commits intonodejs:masterfrom
Conversation
|
This is waiting for/blocked by #32051 |
18c3de4 to
c13abc8
Compare
747fbf7 to
059b055
Compare
059b055 to
8f14903
Compare
9725ba8 to
2fc0856
Compare
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.
|
@ronag I guess this is no longer blocked now, but needs a rebase? |
c6cb45b to
d244303
Compare
|
@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
|
needs another @nodejs/tsc approval |
|
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
|
green CI & CITGM, waiting for another @nodejs/tsc approval |
|
Landed in 1428a92 |
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