File tree 1 file changed +8
-2
lines changed
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -139,8 +139,14 @@ changes:
139
139
the [ initial delay] ( net.md#net_socket_setkeepalive_enable_initialdelay )
140
140
for TCP Keep-Alive packets. Ignored when the
141
141
` keepAlive ` option is ` false ` or ` undefined ` . ** Default:** ` 1000 ` .
142
- * ` maxSockets ` {number} Maximum number of sockets to allow per
143
- host. Each request will use a new socket until the maximum is reached.
142
+ * ` maxSockets ` {number} Maximum number of sockets to allow per host.
143
+ If the same host opens multiple concurrent connections, each request
144
+ will use new socket until the ` maxSockets ` value is reached.
145
+ If the host attempts to open more connections than ` maxSockets ` ,
146
+ the additional requests will enter into a pending request queue, and
147
+ will enter active connection state when an existing connection terminates.
148
+ This makes sure there are at most ` maxSockets ` active connections at
149
+ any point in time, from a given host.
144
150
** Default:** ` Infinity ` .
145
151
* ` maxTotalSockets ` {number} Maximum number of sockets allowed for
146
152
all hosts in total. Each request will use a new socket
You can’t perform that action at this time.
0 commit comments