doc: specify that maxFreeSockets is per host

The `maxFreeSockets` option specifies the maximum number of free
sockets per host.

PR-URL: https://github.com/nodejs/node/pull/40483
Fixes: https://github.com/nodejs/node/issues/40446
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
This commit is contained in:
Luigi Pinca 2021-10-16 19:55:31 +02:00
parent d6c3a10757
commit 78e8f082ab

View File

@ -158,7 +158,7 @@ changes:
all hosts in total. Each request will use a new socket
until the maximum is reached.
**Default:** `Infinity`.
* `maxFreeSockets` {number} Maximum number of sockets to leave open
* `maxFreeSockets` {number} Maximum number of sockets per host to leave open
in a free state. Only relevant if `keepAlive` is set to `true`.
**Default:** `256`.
* `scheduling` {string} Scheduling strategy to apply when picking