stream: enable usage of webstreams on compose()#46675
stream: enable usage of webstreams on compose()#46675nodejs-github-bot merged 12 commits intonodejs:mainfrom
Conversation
|
Review requested:
|
|
ping @ronag |
dce9344 to
505d884
Compare
| } else { | ||
| onclose = callback; | ||
| if (isNodeStream(tail)) { | ||
| destroyer(tail, err); |
There was a problem hiding this comment.
Some help is needed here, how could we destroy webstreams here? or should we even?
There was a problem hiding this comment.
Can you elaborate on the question? (We can destroy web streams the question is what scenario do you specifically mean)
There was a problem hiding this comment.
When the pipeline encounters an error, it would call d.destroy, which in turn would destroy the last stream in the series the tail stream should the same happen for webstreams too I think we could do writableStream.abort() here.
Actually, i am a little confused why destroying the last stream is necessary 😅
|
Added tests and doc opening for review |
ronag
left a comment
There was a problem hiding this comment.
This is quite complicated. Can you please make this as easy to review as possible, i.e. avoid any unnecessary changes and make the diff as small as possible, e.g. don't rename d to duplex.
|
Simplified the diff, and removed the unnecessary functions could you check @ronag |
benjamingr
left a comment
There was a problem hiding this comment.
Looks good, left a few comments that are non-blocking for now but I'd like addressed
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as outdated.
This comment was marked as outdated.
ronag
left a comment
There was a problem hiding this comment.
I need some time to review this
|
No problem! |
|
Landed in 94e1f8f |
|
I think we can close #39316 now implemented:
|
Refs: nodejs#39316 PR-URL: nodejs#46675 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Robert Nagy <ronagy@icloud.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Refs: nodejs#39316 PR-URL: nodejs#46675 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Robert Nagy <ronagy@icloud.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Refs: nodejs#39316 PR-URL: nodejs#46675 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Robert Nagy <ronagy@icloud.com> Reviewed-By: James M Snell <jasnell@gmail.com>
The final one in the series
Refs: #39316