I have a child process spawned in my Node.js app, the request body payload is piped directly to the child stdin. Even though the client TCP socket is closed, no relevant events are omitted. What I tried:
close/error/end on req, req.socket and child.sdtdin; disconnect and error on the child. None of them are fired when I close the browser tab sending the request.
I'm looking for your hints.
Solved
So it was my fault, sorry.
The events are called in this particual order:
[2017-02-19 19:10:43] [LOG] req socket event error { [Error: read ECONNRESET] code: 'ECONNRESET', errno: 'ECONNRESET', syscall: 'read' }
[2017-02-19 19:10:43] [LOG] req event close undefined
[2017-02-19 19:10:43] [LOG] req socket event close true
No comments:
Post a Comment