Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 2c94967

Browse filesBrowse files
efekrskladuh95
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 c4f298c commit 2c94967
Copy full SHA for 2c94967

1 file changed

-6Lines changed: 0 additions & 6 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎lib/_http_server.js‎

Copy file name to clipboardExpand all lines: lib/_http_server.js
-6Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -576,12 +576,6 @@ function Server(options, requestListener) {
576576

577577
storeHTTPOptions.call(this, options);
578578

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

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.