-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
What about closing streams in the pipe on error? #22
Comments
streams are already being closed, it's just that .destroy isn't being called. is that what you refer to? |
From the
The flow stops, but the streams are still alive. It leaks memory, and sometimes more:
|
ok i agree this is a good idea to add. can you contribute some of your time to get this rolling? |
Sorry I don't have time to do that for now... Maybe both could merge! This new feature could be considered a breaking feature, this would require major version 2 if enabled by default (and it should be enabled by default: it's really useful). |
https://www.npmjs.com/package/pump has similar features to
multipipe
, but also handles closing streams in the pipe on error.It seems to be a nice feature for
multipipe
.The issue being that
destroy
is not part of the Stream2/3 official API, but it's still useful for streams that support this.Are there plans to add this to
multipipe
?pump
has less tests thanmultipipe
, and 2 times less downloads per months on npmjs.orgThe text was updated successfully, but these errors were encountered: