You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
http: IncomingMessage emits 'end' after 'close' #29295
@ronag Sorry to bother you, but i think I'm facing this issue.
Node Version: 10.15.3
Linux Mint 19.3 x64
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.
I'm reading from the mongodb cursor, using a transform stream to stringfy the objects and piping the results to express.response(http).
I'm receiving the error "Premature close", but the data was sent correctly.
Maybe just ignore the premature close error?
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.
Activity
ronag commentedon Aug 24, 2019
Possibly related #27916 @lpinca
ronag commentedon Aug 24, 2019
If this is resolved, I believe 779a05d can be re-applied inside a'close'listener.ronag commentedon Aug 24, 2019
Slightly related to addaleax@9aedf72 @addaleax
ronag commentedon Oct 6, 2019
There are PR's for this
gustavomassa commentedon Nov 8, 2019
@ronag Sorry to bother you, but i think I'm facing this issue.
Node Version: 10.15.3
Linux Mint 19.3 x64
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.
I'm reading from the mongodb cursor, using a transform stream to stringfy the objects and piping the results to express.response(http).
I'm receiving the error "Premature close", but the data was sent correctly.
Maybe just ignore the premature close error?
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.