Skip to content

Commit cd4f68c

Browse files
committed
http: Increase default keepAliveTimeout to 65s
1 parent fa79ed3 commit cd4f68c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

doc/api/http.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1938,11 +1938,11 @@ value only affects new connections to the server, not any existing connections.
19381938
added: v8.0.0
19391939
changes:
19401940
- version: v24.0.0
1941-
pr-url: https://github.com/nodejs/node/issues/59193
1942-
description: the default value for `http.Server.keepAliveTimeout` is changed from 5 to 60 seconds.
1941+
pr-url: https://github.com/nodejs/node/pull/59203
1942+
description: the default value for `http.Server.keepAliveTimeout` is changed from 5 to 65 seconds.
19431943
-->
19441944

1945-
* Type: {number} Timeout in milliseconds. **Default:** `60000` (60 seconds).
1945+
* Type: {number} Timeout in milliseconds. **Default:** `65000` (65 seconds).
19461946

19471947
The number of milliseconds of inactivity a server needs to wait for additional
19481948
incoming data, after it has finished writing the last response, before a socket

lib/_http_server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ function storeHTTPOptions(options) {
481481
validateInteger(keepAliveTimeout, 'keepAliveTimeout', 0);
482482
this.keepAliveTimeout = keepAliveTimeout;
483483
} else {
484-
this.keepAliveTimeout = 60000; // 60 seconds;
484+
this.keepAliveTimeout = 65000; // 65 seconds;
485485
}
486486

487487
const connectionsCheckingInterval = options.connectionsCheckingInterval;

0 commit comments

Comments
 (0)