Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas <andreas@bielk.se>2021-03-28 12:17:25 +0300
committerRuy Adorno <ruyadorno@hotmail.com>2021-03-29 20:52:19 +0300
commit4b100249a6cad67e002186816e64817313b636c7 (patch)
treec2230f98421508cb24a11f59be8ec6f114d9281b /lib/utils/config/definitions.js
parent9d391462a25f637219501e2430ef1f7b89710816 (diff)
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: https://github.com/npm/cli/pull/2979 Credit: @wallrat Close: #2979 Reviewed-by: @ruyadorno Co-authored-by: Gar <gar+gh@danger.computer>
Diffstat (limited to 'lib/utils/config/definitions.js')
-rw-r--r--lib/utils/config/definitions.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/utils/config/definitions.js b/lib/utils/config/definitions.js
index 512ea8af9..db66aa495 100644
--- a/lib/utils/config/definitions.js
+++ b/lib/utils/config/definitions.js
@@ -1154,7 +1154,7 @@ define('long', {
})
define('maxsockets', {
- default: Infinity,
+ default: 15,
type: Number,
description: `
The maximum number of connections to use per origin (protocol/host/port