GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — doc: fix order of events when request is aborted · nodejs/node@e9ad526

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • doc/api
    • http.md
Expand file treeCollapse file tree
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
@@ -2081,9 +2081,9 @@ will be emitted in the following order:
20812081
* `'socket'`
20822082
* (`req.abort()` called here)
20832083
* `'abort'`
2084-
* `'close'`
20852084
* `'error'` with an error with message `'Error: socket hang up'` and code
20862085
`'ECONNRESET'`
2086+
* `'close'`
20872087

20882088
If `req.abort()` is called after the response is received, the following events
20892089
will be emitted in the following order:
@@ -2093,10 +2093,10 @@ will be emitted in the following order:
20932093
* `'data'` any number of times, on the `res` object
20942094
* (`req.abort()` called here)
20952095
* `'abort'`
2096+
* `'aborted'` on the `res` object
20962097
* `'close'`
2097-
* `'aborted'` on the `res` object
2098-
* `'end'` on the `res` object
2099-
* `'close'` on the `res` object
2098+
* `'end'` on the `res` object
2099+
* `'close'` on the `res` object
21002100

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

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.