Uh oh!
There was an error while loading. Please reload this page.
stream: enable usage of webstreams on compose() - #46675
Conversation
nodejs-github-bot
commented
Feb 15, 2023
Review requested:
|
debadree25
commented
Feb 15, 2023
ping @ronag |
dce9344 to
505d884Compare| } 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 😅
There was a problem hiding this comment.
This one question remain wdyt @benjamingr ?
debadree25
commented
Feb 16, 2023
Added tests and doc opening for review |
Uh oh!
There was an error while loading. Please reload this page.
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.
debadree25
commented
Feb 17, 2023
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
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.
debadree25
commented
Feb 19, 2023
No problem! |
nodejs-github-bot
commented
Feb 26, 2023
nodejs-github-bot
commented
Feb 27, 2023
Landed in 94e1f8f |
debadree25
commented
Feb 27, 2023
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>
The final one in the series
Refs: #39316