From 78e8f082abaf43ec6f3025bdc57b6aee78353ec1 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 9c9d8303627550..09aa425b0f90fa 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