diff options
author | Ali Ijaz Sheikh <ofrobots@google.com> | 2019-05-03 16:45:57 -0700 |
---|---|---|
committer | Ali Ijaz Sheikh <ofrobots@google.com> | 2019-05-09 08:54:04 -0700 |
commit | c30ef3cbd2e42ac1d600f6bd78a601a5496b0877 (patch) | |
tree | 44087e0e6bc08c1bc846f72daf9bd418a7c24ea8 /lib/_http_server.js | |
parent | e582d1191376b8bf129a04730b04a2cd52ae5202 (diff) | |
download | android-node-v8-c30ef3cbd2e42ac1d600f6bd78a601a5496b0877.tar.gz android-node-v8-c30ef3cbd2e42ac1d600f6bd78a601a5496b0877.tar.bz2 android-node-v8-c30ef3cbd2e42ac1d600f6bd78a601a5496b0877.zip |
http, http2: remove default server timeout
Timing out and closing the socket after two minutes have elapsed is
surprising and problematic for users. This behavior was specific to
Node.js, and doesn't seem to be common in other language runtimes.
Fixes: https://github.com/nodejs/node/issues/27556
PR-URL: https://github.com/nodejs/node/pull/27558
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'lib/_http_server.js')
-rw-r--r-- | lib/_http_server.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/_http_server.js b/lib/_http_server.js index 9f62872e8e..f7884d2626 100644 --- a/lib/_http_server.js +++ b/lib/_http_server.js @@ -315,7 +315,7 @@ function Server(options, requestListener) { this.on('connection', connectionListener); - this.timeout = 2 * 60 * 1000; + this.timeout = 0; this.keepAliveTimeout = 5000; this.maxHeadersCount = null; this.headersTimeout = 40 * 1000; // 40 seconds |