Skip to content

Commit 1a8669d

Browse files
rickyesaddaleax
authored andcommittedSep 28, 2020
doc: Add maxTotalSockets option to agent constructor
PR-URL: nodejs/node#34013 Backport-PR-URL: nodejs/node#35396 Refs: nodejs/node#33617 Reviewed-By: Robert Nagy <ronagy@icloud.com> Reviewed-By: James M Snell <jasnell@gmail.com> PR-URL: nodejs/node#33617 Fixes: nodejs/node#31942
1 parent 3d1bdc2 commit 1a8669d

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)
Failed to load comments.