stream: don't wait for close on legacy streams · nodejs/node@184e80a · GitHub
Skip to content

Commit 184e80a

Browse files
ronagBethGriggs
authored andcommitted
stream: don't wait for close on legacy streams
Try to detect non standard streams and don't wait for 'close' on these. In particular if we detected that destroyed is true before we expect it to be then fallback to compat behavior. Fixes: #33050 PR-URL: #33058 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Zeyu Yang <himself65@outlook.com>
1 parent fad188f commit 184e80a

2 files changed

Lines changed: 23 additions & 1 deletion

File tree

lib/internal/streams/end-of-stream.js

Lines changed: 11 additions & 1 deletion

test/parallel/test-stream-finished.js

Lines changed: 12 additions & 0 deletions

0 commit comments

Comments
 (0)