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
Node 10: close event is still emitted on normal HTTP response #25294
res in this case is an IncomingMessage (a Readable stream), which is documented as having a 'close' event. Also FWIW in #21063 the res there is a ServerResponse (a Writable stream), which is a different issue.
Activity
mscdex commentedon Dec 31, 2018
resin this case is anIncomingMessage(a Readable stream), which is documented as having a'close'event. Also FWIW in #21063 theresthere is aServerResponse(a Writable stream), which is a different issue.borisovg commentedon Dec 31, 2018
@mscdex you are correct
This is the output in Node v8:
Change in behaviour is the same.
borisovg commentedon Dec 31, 2018
OK, read the docs some more and changed my code to avoid this issue entirely.