-
Notifications
You must be signed in to change notification settings - Fork 31.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
http: IncomingMessage emits 'end' after 'close' #29295
Comments
|
Slightly related to addaleax@9aedf72 @addaleax |
There are PR's for this |
@ronag Sorry to bother you, but i think I'm facing this issue. Node Version: 10.15.3 I'm testing the node streams back-pressuring with pipeline and transform stream to stream data from mongodb cursor dynamically instead of allocating the entire mongodb cursor on RAM.
As workaround I just ignored the error code 'ERR_STREAM_PREMATURE_CLOSE'
Another question not related to the issues, is there a way to know when I'm receiving the last chunk inside the transform stream? Before the end/finish events. |
'end'
can be emitted after'close'
. This can cause e.g. pipeline to error with aERR_STREAM_PREMATURE_CLOSE
.See, nxtedition#1 for repo test.
The text was updated successfully, but these errors were encountered: