-
Notifications
You must be signed in to change notification settings - Fork 30.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
stream pipeline kills process when writeStream is closed #52622
Comments
@ronag wdyt? |
(also weren't we deprecating close?) |
Yea. I think we should throw if pipelining to a destroyed or ended stream. However, that will be semver major. |
Yes definitely semver-major and I agree it's better behavior conceptually |
Hi guys, I'd like to take some time to work on this issue, @ronag may I ask what should be the error code for this one if we decide to throw an error? I think we have E('ERR_STREAM_CANNOT_PIPE', 'Cannot pipe, not readable', Error); But I think this one probably should be something like Being said should I add new error code(s) or there is an existing one that fits the purpose. |
PR-URL: nodejs#53241 Fixes: nodejs#52622 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
PR-URL: nodejs#53241 Fixes: nodejs#52622 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Version
v21.7.1
Platform
Linux
Subsystem
No response
What steps will reproduce the bug?
To reproduce this follow this
Now run this script
How often does it reproduce? Is there a required condition?
No response
What is the expected behavior? Why is that the expected behavior?
pipeline
function should throw error saying writeStream is closed.What do you see instead?
prints
true true
then exits with code 0.true true
is part of script and its working as intended.Additional information
No response
The text was updated successfully, but these errors were encountered: