diff options
| author | Paolo Insogna <paolo@cowtech.it> | 2022-04-13 16:47:59 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-13 15:47:59 +0100 |
| commit | 3caa2c1a005652fdb3e896ef940cd5ffe5fdff10 (patch) | |
| tree | f8e9e9bfe7c95d5633c86e021518f487a9eadb8f /lib/https.js | |
| parent | 9d6af7d1fe66afdcb781fb5bad37b4cb4d396f0e (diff) | |
| download | node-new-3caa2c1a005652fdb3e896ef940cd5ffe5fdff10.tar.gz | |
http: refactor headersTimeout and requestTimeout logic
PR-URL: https://github.com/nodejs/node/pull/41263
Fixes: https://github.com/nodejs/node/issues/33440
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Robert Nagy <ronagy@icloud.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Diffstat (limited to 'lib/https.js')
| -rw-r--r-- | lib/https.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/https.js b/lib/https.js index 3834a88177..74ce93baaa 100644 --- a/lib/https.js +++ b/lib/https.js @@ -40,6 +40,7 @@ const tls = require('tls'); const { Agent: HttpAgent } = require('_http_agent'); const { Server: HttpServer, + setupConnectionsTracking, storeHTTPOptions, _connectionListener, } = require('_http_server'); @@ -80,10 +81,8 @@ function Server(opts, requestListener) { }); this.timeout = 0; - this.keepAliveTimeout = 5000; this.maxHeadersCount = null; - this.headersTimeout = 60 * 1000; // 60 seconds - this.requestTimeout = 0; + setupConnectionsTracking(this); } ObjectSetPrototypeOf(Server.prototype, tls.Server.prototype); ObjectSetPrototypeOf(Server, tls.Server); |
