Files
node/doc/api
Renato Mariscal f8a0e62bbf doc: update http server response 'close' event
Two places emits `close` events:

`resOnFinish` calls `emitCloseNT`, which happens when the result is
completed:
https://github.com/nodejs/node/blob/687dbd85263f433cc351c6daa83f9296a1d0bb4f/lib/_http_server.js#L695

It gets attached once the socket is assigned:
https://github.com/nodejs/node/blob/687dbd85263f433cc351c6daa83f9296a1d0bb4f/lib/_http_server.js#L226

And detached if the response is completed:
https://github.com/nodejs/node/blob/master/lib/_http_server.js#L709
https://github.com/nodejs/node/blob/687dbd85263f433cc351c6daa83f9296a1d0bb4f/lib/_http_server.js#L232

Which means, it can only be reached in this case, for premature socket
termination.

PR-URL: https://github.com/nodejs/node/pull/34472
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Robert Nagy <ronagy@icloud.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
2020-08-10 17:52:32 -07:00
..
2020-08-08 16:45:34 -07:00
2020-07-16 00:26:26 +02:00
2020-08-03 14:27:28 -04:00
2020-06-26 10:25:14 -07:00
2020-06-26 10:25:14 -07:00
2020-08-03 14:27:28 -04:00
2020-06-26 10:25:14 -07:00
2020-07-21 17:45:12 -04:00
2020-06-26 10:25:14 -07:00
2020-08-07 08:37:27 -07:00
2020-06-26 10:25:14 -07:00
2020-06-26 10:25:14 -07:00
2020-06-30 15:27:43 -07:00
2020-06-26 10:25:14 -07:00
2020-06-26 10:25:14 -07:00
2020-06-26 10:25:14 -07:00
2020-08-10 12:09:43 -05:00
2020-06-26 10:25:14 -07:00
2020-07-21 17:45:12 -04:00
2020-07-21 17:45:12 -04:00
2020-06-30 15:27:43 -07:00