From 7b746381cea06b2259b0aeaba0ea57936c9d22a3 Mon Sep 17 00:00:00 2001 From: Luigi Pinca Date: Sat, 16 Oct 2021 19:55:31 +0200 Subject: [PATCH] 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 Reviewed-By: Benjamin Gruenbaum --- doc/api/http.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/http.md b/doc/api/http.md index c32872f65843f1..74b0f9975fd5bb 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -156,7 +156,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