-
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 - http.ClientRequest doesn't emit 'aborted'? #15259
Comments
Yes, it's incorrect. It may have been copy/pasted from |
For posterity @ronag I am pasting in the permalink of the line that you referenced in code Line 366 in c79fd2b
Also this issue precedes and seems like it is related to #15283, should we be folding #15283 in here? |
Edit: nvm. |
The `'aborted'` event is only emitted on `http.IncomingMessage` instances. Fixes: nodejs#15259
The `'aborted'` event is only emitted on `http.IncomingMessage` instances. PR-URL: nodejs/node#15471 Fixes: nodejs/node#15259 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Minwoo Jung <minwoo@nodesource.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
The `'aborted'` event is only emitted on `http.IncomingMessage` instances. PR-URL: #15471 Fixes: #15259 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Minwoo Jung <minwoo@nodesource.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
The `'aborted'` event is only emitted on `http.IncomingMessage` instances. PR-URL: #15471 Fixes: #15259 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Minwoo Jung <minwoo@nodesource.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
The `'aborted'` event is only emitted on `http.IncomingMessage` instances. PR-URL: #15471 Fixes: #15259 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Minwoo Jung <minwoo@nodesource.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Looking through the _http_client.js code it seems to me that the
http.ClientRequest
object never emits an ´aborted´ event (onlyclose
). It's just the response object that emits theaborted
event.https://github.com/nodejs/node/blob/master/lib/_http_client.js#L366
That seems to go against the docs, https://nodejs.org/api/http.html#http_event_aborted
The text was updated successfully, but these errors were encountered: