Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 643ca14

Browse filesBrowse files
lpincatargos
authored andcommitted
doc: fix order of events when request is aborted
PR-URL: #24779 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
1 parent c300aaa commit 643ca14
Copy full SHA for 643ca14

File tree

Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed
Open diff view settings
Collapse file

‎doc/api/http.md‎

Copy file name to clipboardExpand all lines: doc/api/http.md
+4-4Lines changed: 4 additions & 4 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -2075,9 +2075,9 @@ will be emitted in the following order:
20752075
* `'socket'`
20762076
* (`req.abort()` called here)
20772077
* `'abort'`
2078-
* `'close'`
20792078
* `'error'` with an error with message `'Error: socket hang up'` and code
20802079
`'ECONNRESET'`
2080+
* `'close'`
20812081

20822082
If `req.abort()` is called after the response is received, the following events
20832083
will be emitted in the following order:
@@ -2087,10 +2087,10 @@ will be emitted in the following order:
20872087
* `'data'` any number of times, on the `res` object
20882088
* (`req.abort()` called here)
20892089
* `'abort'`
2090+
* `'aborted'` on the `res` object
20902091
* `'close'`
2091-
* `'aborted'` on the `res` object
2092-
* `'end'` on the `res` object
2093-
* `'close'` on the `res` object
2092+
* `'end'` on the `res` object
2093+
* `'close'` on the `res` object
20942094

20952095
Note that setting the `timeout` option or using the `setTimeout()` function will
20962096
not abort the request or do anything besides add a `'timeout'` event.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.