Skip to content

Commit 8750b2b

Browse files
wallratwraithgar
authored andcommitted
change 'maxsockets' default value back to 15
The default value for 'maxsockets' was changed during the refactoring in #2878 from 50 to 'Inifinity', this PR changes it to the more accurate value of 15, which was the default used in: https://github.com/npm/make-fetch-happen/blob/785af652ec0c8f108a43004903afd2183af93904/agent.js#L15 Fixes #2978 PR-URL: #2979 Credit: @wallrat Close: #2979 Reviewed-by: @ruyadorno Co-authored-by: Gar <[email protected]>
1 parent f1120df commit 8750b2b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

docs/content/using-npm/config.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -795,7 +795,7 @@ Show extended information in `npm ls` and `npm search`.
795795

796796
#### `maxsockets`
797797

798-
* Default: Infinity
798+
* Default: 15
799799
* Type: Number
800800

801801
The maximum number of connections to use per origin (protocol/host/port

lib/utils/config/definitions.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1154,7 +1154,7 @@ define('long', {
11541154
})
11551155

11561156
define('maxsockets', {
1157-
default: Infinity,
1157+
default: 15,
11581158
type: Number,
11591159
description: `
11601160
The maximum number of connections to use per origin (protocol/host/port

tap-snapshots/test-lib-utils-config-describe-all.js-TAP.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@ Show extended information in \`npm ls\` and \`npm search\`.
674674
675675
#### \`maxsockets\`
676676
677-
* Default: Infinity
677+
* Default: 15
678678
* Type: Number
679679
680680
The maximum number of connections to use per origin (protocol/host/port

0 commit comments

Comments
 (0)