Skip to content

Commit 9d64cb6

Browse files
authored
http: remove redundant keepAliveTimeoutBuffer assignment
PR-URL: #61743 Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Tim Perry <pimterry@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
1 parent 128d2a6 commit 9d64cb6

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
@@ -574,12 +574,6 @@ function Server(options, requestListener) {
574574

575575
storeHTTPOptions.call(this, options);
576576

577-
// Optional buffer added to the keep-alive timeout when setting socket timeouts.
578-
// Helps reduce ECONNRESET errors from clients by extending the internal timeout.
579-
// Default is 1000ms if not specified.
580-
const buf = options.keepAliveTimeoutBuffer;
581-
this.keepAliveTimeoutBuffer =
582-
(typeof buf === 'number' && NumberIsFinite(buf) && buf >= 0) ? buf : 1000;
583577
net.Server.call(
584578
this,
585579
{ allowHalfOpen: true, noDelay: options.noDelay ?? true,

0 commit comments

Comments
 (0)