mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
doc: clarify http timeouts
Socket timeouts set using the `'connection'` event are replaced by `server.keepAliveTimeout` when a response is handled. PR-URL: https://github.com/nodejs/node/pull/25748 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
This commit is contained in:
1 parent
a225f99ea8
commit
eb4b5ea233
1 file changed
+4
@@ -908,6 +908,10 @@ also be accessed at `request.connection`.
|
||||
This event can also be explicitly emitted by users to inject connections
|
||||
into the HTTP server. In that case, any [`Duplex`][] stream can be passed.
|
||||
|
||||
If `socket.setTimeout()` is called here, the timeout will be replaced with
|
||||
`server.keepAliveTimeout` when the socket has served a request (if
|
||||
`server.keepAliveTimeout` is non-zero).
|
||||
|
||||
### Event: 'request'
|
||||
<!-- YAML
|
||||
added: v0.1.0
|
||||
|
||||
Reference in new issue
Block a user