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