Skip to content

Commit e273edf

Browse files
rickyesMylesBorins
authored andcommitted
doc: Add maxTotalSockets option to agent constructor
PR-URL: #34013 Refs: #33617 Reviewed-By: Robert Nagy <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent ab6b786 commit e273edf

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

doc/api/http.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,9 @@ http.get({
113113
<!-- YAML
114114
added: v0.3.4
115115
changes:
116+
- version: v14.5.0
117+
pr-url: https://github.com/nodejs/node/pull/33617
118+
description: Add `maxTotalSockets` option to agent constructor.
116119
- version: v14.5.0
117120
pr-url: https://github.com/nodejs/node/pull/33278
118121
description: Add `scheduling` option to specify the free socket
@@ -136,6 +139,10 @@ changes:
136139
* `maxSockets` {number} Maximum number of sockets to allow per
137140
host. Each request will use a new socket until the maximum is reached.
138141
**Default:** `Infinity`.
142+
* `maxTotalSockets` {number} Maximum number of sockets allowed for
143+
all hosts in total. Each request will use a new socket
144+
until the maximum is reached.
145+
**Default:** `Infinity`.
139146
* `maxFreeSockets` {number} Maximum number of sockets to leave open
140147
in a free state. Only relevant if `keepAlive` is set to `true`.
141148
**Default:** `256`.

0 commit comments

Comments
 (0)