Files
node/doc/api
Renato Mariscal d29b805569 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-20 15:05:09 +01:00
..
2020-08-10 21:25:27 -07:00
2020-07-27 18:04:06 -04:00
2020-08-10 21:21:50 -07:00
2020-07-16 17:08:55 -04:00
2020-07-16 17:09:04 -04:00
2020-07-16 17:08:55 -04:00
2020-08-10 21:21:50 -07:00
2020-07-16 17:08:55 -04:00
2020-08-10 21:25:27 -07:00
2020-07-20 16:51:34 -04:00
2020-07-16 17:08:55 -04:00
2020-08-10 21:21:52 -07:00
2020-07-16 17:08:55 -04:00
2020-07-16 17:08:55 -04:00
2020-07-16 17:08:55 -04:00
2020-07-16 17:08:55 -04:00
2020-07-16 17:08:55 -04:00
2020-08-20 15:05:09 +01:00
2020-07-16 17:08:55 -04:00
2020-07-20 16:51:34 -04:00
2020-07-20 16:51:34 -04:00
2020-07-16 17:08:55 -04:00