Skip to content

Commit 0a507d1

Browse files
committed
doc: Add maxTotalSockets option to agent constructor
PR-URL: nodejs#34013 Refs: nodejs#33617 Reviewed-By: Robert Nagy <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 6933e00 commit 0a507d1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

doc/api/http.md

+8
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,10 @@ http.get({
112112
### `new Agent([options])`
113113
<!-- YAML
114114
added: v0.3.4
115+
changes:
116+
- version: REPLACEME
117+
pr-url: https://github.com/nodejs/node/pull/33617
118+
description: Add `maxTotalSockets` option to agent constructor.
115119
-->
116120

117121
* `options` {Object} Set of configurable options to set on the agent.
@@ -131,6 +135,10 @@ added: v0.3.4
131135
* `maxSockets` {number} Maximum number of sockets to allow per
132136
host. Each request will use a new socket until the maximum is reached.
133137
**Default:** `Infinity`.
138+
* `maxTotalSockets` {number} Maximum number of sockets allowed for
139+
all hosts in total. Each request will use a new socket
140+
until the maximum is reached.
141+
**Default:** `Infinity`.
134142
* `maxFreeSockets` {number} Maximum number of sockets to leave open
135143
in a free state. Only relevant if `keepAlive` is set to `true`.
136144
**Default:** `256`.

0 commit comments

Comments
 (0)