Skip to content

Commit 1d6e18b

Browse files
lpincaaddaleax
authored andcommitted
doc: fix http.Agent timeout option description
By default the agent options are passed to `net.createConnection()` which sets the timeout on the socket immediately after creating it. PR-URL: #25489 Reviewed-By: Anna Henningsen <anna@addaleax.net>
1 parent bc81fef commit 1d6e18b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/http.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ added: v0.3.4
127127
in a free state. Only relevant if `keepAlive` is set to `true`.
128128
**Default:** `256`.
129129
* `timeout` {number} Socket timeout in milliseconds.
130-
This will set the timeout after the socket is connected.
130+
This will set the timeout when the socket is created.
131131

132132
`options` in [`socket.connect()`][] are also supported.
133133

0 commit comments

Comments
 (0)