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 899884d

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 5266887 commit 899884d
Copy full SHA for 899884d

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
@@ -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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.