diff --git a/doc/api/http.md b/doc/api/http.md index d7e8c4caa852f1..a3adbe36868bea 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -112,6 +112,10 @@ http.get({ ### `new Agent([options])` * `options` {Object} Set of configurable options to set on the agent. @@ -131,6 +135,10 @@ added: v0.3.4 * `maxSockets` {number} Maximum number of sockets to allow per host. Each request will use a new socket until the maximum is reached. **Default:** `Infinity`. + * `maxTotalSockets` {number} Maximum number of sockets allowed for + 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 in a free state. Only relevant if `keepAlive` is set to `true`. **Default:** `256`. @@ -285,6 +293,16 @@ added: v0.3.6 By default set to `Infinity`. Determines how many concurrent sockets the agent can have open per origin. Origin is the returned value of [`agent.getName()`][]. +### `agent.maxTotalSockets` + + +* {number} + +By default set to `Infinity`. Determines how many concurrent sockets the agent +can have open. Unlike `maxSockets`, this parameter applies across all origins. + ### `agent.requests`