★ wanayoo — archive 1999 https://github.com/nodejs/node/commit/eb4b5ea233Nouvelle recherche | Portail wanayoo
Skip to content
Permalink
Browse files
doc: clarify http timeouts
Socket timeouts set using the `'connection'` event are replaced by
`server.keepAliveTimeout` when a response is handled.

PR-URL: #25748
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
  • Loading branch information
inversion authored and targos committed Feb 10, 2019
1 parent a225f99 commit eb4b5ea2339521f09cb2fa7adfaeaf2a44e7ce45
Showing with 4 additions and 0 deletions.
  1. +4 −0 doc/api/http.md
@@ -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

0 comments on commit eb4b5ea

Please sign in to comment.