-
-
Notifications
You must be signed in to change notification settings - Fork 61
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
buffered data in readable stream does not reach writable stream #33
Comments
This is by design. You are explicitly tearing down you pipeline by destroying the socket. End it gracefully using |
In this scenario the socket is abruptly closed by the client (thus the error) so there is no way to close it gracefully and the parser should still receive all buffered data. It works with plain I guess |
I think I have a similar question to @lpinca. When piping a requestjs stream to an express |
If an error occurs all streams are destroyed. This prevents buffered data in the pipe from reaching the destination.
Here is a test case:
Expected result:
All three chunks are processed by the writable stream.
Actual result:
Only the first is processed.
This is probably done by design but I'd like to confirm this.
The text was updated successfully, but these errors were encountered: