Skip to content

Commit 386b7d0

Browse files
efekrskljuanarbol
authored andcommitted
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 0709e62 commit 386b7d0

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

lib/_http_server.js

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

568568
storeHTTPOptions.call(this, options);
569569

570-
// Optional buffer added to the keep-alive timeout when setting socket timeouts.
571-
// Helps reduce ECONNRESET errors from clients by extending the internal timeout.
572-
// Default is 1000ms if not specified.
573-
const buf = options.keepAliveTimeoutBuffer;
574-
this.keepAliveTimeoutBuffer =
575-
(typeof buf === 'number' && NumberIsFinite(buf) && buf >= 0) ? buf : 1000;
576570
net.Server.call(
577571
this,
578572
{ allowHalfOpen: true, noDelay: options.noDelay ?? true,

0 commit comments

Comments
 (0)