Skip to content

Commit 24d752a

Browse files
committed
http: don't set keepAliveTimeoutBuffer twice.
It's already set once through storeHTTPOptions
1 parent 961554c commit 24d752a

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

lib/_http_server.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -556,12 +556,6 @@ function Server(options, requestListener) {
556556

557557
storeHTTPOptions.call(this, options);
558558

559-
// Optional buffer added to the keep-alive timeout when setting socket timeouts.
560-
// Helps reduce ECONNRESET errors from clients by extending the internal timeout.
561-
// Default is 1000ms if not specified.
562-
const buf = options.keepAliveTimeoutBuffer;
563-
this.keepAliveTimeoutBuffer =
564-
(typeof buf === 'number' && NumberIsFinite(buf) && buf >= 0) ? buf : 1000;
565559
net.Server.call(
566560
this,
567561
{ allowHalfOpen: true, noDelay: options.noDelay ?? true,

0 commit comments

Comments
 (0)