File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -112,6 +112,10 @@ http.get({
112112### ` new Agent([options]) `
113113<!-- YAML
114114added: v0.3.4
115+ changes:
116+ - version: REPLACEME
117+ pr-url: https://github.com/nodejs/node/pull/33617
118+ description: Add `maxTotalSockets` option to agent constructor.
115119-->
116120
117121* ` options ` {Object} Set of configurable options to set on the agent.
@@ -131,6 +135,10 @@ added: v0.3.4
131135 * ` maxSockets ` {number} Maximum number of sockets to allow per
132136 host. Each request will use a new socket until the maximum is reached.
133137 ** Default:** ` Infinity ` .
138+ * ` maxTotalSockets ` {number} Maximum number of sockets allowed for
139+ all hosts in total. Each request will use a new socket
140+ until the maximum is reached.
141+ ** Default:** ` Infinity ` .
134142 * ` maxFreeSockets ` {number} Maximum number of sockets to leave open
135143 in a free state. Only relevant if ` keepAlive ` is set to ` true ` .
136144 ** Default:** ` 256 ` .
You can’t perform that action at this time.
0 commit comments