This repository has been archived by the owner on Apr 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7.3k
Docs: Add guarantees about http request.abort #4409
Labels
Comments
jasnell
added a commit
to jasnell/node-joyent
that referenced
this issue
Jun 24, 2015
Per nodejs#4409, the documentation on http.abort is a bit lacking. This provides a slight improvement.
A PR has been opened for this. Closing the issue, will land the PR once it's reviewed. |
jasnell
added a commit
that referenced
this issue
Jun 26, 2015
Per #4409, the documentation on http.abort is a bit lacking. This provides a slight improvement. Reviewed-By: James M Snell <[email protected]> PR-URL: #25565
Fixed in b4a0ca2 |
@jasnell, thanks for your attention on this. I see the new wording.
From this I can assume that after
But there's still some ambiguity of what can still be emitted. I've been coding for worst-case on each of these 3 questions.
Depending on the answers, application developers may be able simplify their code, otherwise such code is needed to prevent bugs in the applications. |
jasnell
added a commit
to jasnell/node-joyent
that referenced
this issue
Jun 29, 2015
Per nodejs#4409, the documentation on http.abort is a bit lacking. This provides a slight improvement. Reviewed-By: James M Snell <[email protected]> PR-URL: nodejs#25565
jasnell
added a commit
that referenced
this issue
Aug 4, 2015
Per #4409, the documentation on http.abort is a bit lacking. This provides a slight improvement. Reviewed-By: James M Snell <[email protected]> PR-URL: #25591
jBarz
pushed a commit
to ibmruntimes/node
that referenced
this issue
Nov 4, 2016
Per nodejs#4409, the documentation on http.abort is a bit lacking. This provides a slight improvement. Reviewed-By: James M Snell <[email protected]> PR-URL: nodejs#25591
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I was hoping that there would be language in the docs for http, something like "After a call to abort, no further events (error, response, data, end, etc) will be emitted on either the request or response objects."
I know that is not accurate, so please add to the docs what actually is accurate, and what actual handling I need to put in myself.
For now, I've been removing all the event listeners for error, response, data, end on both the request, and the response (if any) - adding back empty error handlers to prevent the 'unhandled exception' message.
The text was updated successfully, but these errors were encountered: