-
Notifications
You must be signed in to change notification settings - Fork 30.2k
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 - ClientRequest emits hang up error instead of 'aborted' #15318
Comments
To me, 'aborted' indicates an explicit abort was requested at some point in the past. I don't think we should be emitting that same event if the server did not send back a complete response. |
@mscdex: Currently the request object never fires the Emitted when the request has been aborted by the server and the network socket has closed. The explicit abort is given by the |
The http/2 compat seems to fire the |
Actually, the http/2 compat does the reverse, it fires |
can you please make an example of what happens in http and what happens in http2? |
Currently, ClientRequest will emit an 'error' instead of 'aborted' when the connection is closed before response. Is that really correct?
https://github.com/nodejs/node/pull/15270/files#r137951611
The text was updated successfully, but these errors were encountered: