File tree 1 file changed +8
-0
lines changed
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -112,6 +112,10 @@ http.get({
112
112
### ` new Agent([options]) `
113
113
<!-- YAML
114
114
added: 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.
115
119
-->
116
120
117
121
* ` options ` {Object} Set of configurable options to set on the agent.
@@ -131,6 +135,10 @@ added: v0.3.4
131
135
* ` maxSockets ` {number} Maximum number of sockets to allow per
132
136
host. Each request will use a new socket until the maximum is reached.
133
137
** 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 ` .
134
142
* ` maxFreeSockets ` {number} Maximum number of sockets to leave open
135
143
in a free state. Only relevant if ` keepAlive ` is set to ` true ` .
136
144
** Default:** ` 256 ` .
You can’t perform that action at this time.
0 commit comments