From a1209e40d7cc5e64e3c847c09a865783b715d5ce 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` options specifies the maximum number of free sockets per host. Fixes: https://github.com/nodejs/node/issues/40446 --- 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 d059469de294c6..5ca79a51a95ecb 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -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