Files
node/lib/internal
753f3b247a http: add requestTimeout
This commits introduces a new http.Server option called requestTimeout
with a default value in milliseconds of 0.

If requestTimeout is set to a positive value, the server will start a new
timer set to expire in requestTimeout milliseconds when a new connection
is established. The timer is also set again if new requests after the
first are received on the socket (this handles pipelining and keep-alive
cases).
The timer is cancelled when:

1. the request body is completely received by the server.
2. the response is completed. This handles the case where the
application responds to the client without consuming the request body.
3. the connection is upgraded, like in the WebSocket case.

If the timer expires, then the server responds with status code 408 and
closes the connection.

CVE-2020-8251

PR-URL: https://github.com/nodejs-private/node-private/pull/208
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Robert Nagy <ronagy@icloud.com>
Reviewed-By: Mary Marchini <oss@mmarchini.me>
Co-Authored-By: Paolo Insogna <paolo@cowtech.it>
Co-Authored-By: Robert Nagy <ronagy@icloud.com>
2020-09-15 11:20:08 -04:00
..
2020-08-05 08:54:29 -07:00
2020-08-20 15:05:15 +01:00
2020-08-24 12:19:58 +01:00
2020-08-20 15:05:24 +01:00
2020-09-01 11:15:46 -04:00
2020-09-01 11:15:46 -04:00
2020-09-01 11:15:46 -04:00
2020-01-22 15:33:03 +01:00
2020-06-30 09:34:24 -07:00
2020-09-01 11:15:46 -04:00
2020-09-03 07:02:16 -04:00
2020-01-22 15:33:03 +01:00
2020-09-15 11:20:08 -04:00
…
…
2019-11-30 13:58:25 +01:00
2019-12-17 08:11:13 -05:00
2020-08-20 15:05:24 +01:00

Internal Modules

The modules in lib/internal are intended for internal use in Node.js core only, and are not accessible with require() from user modules. These modules can be changed at any time. Reliance on these modules outside of core is not supported in any way.