Skip to content

Commit 498edfd

Browse files
lpincaMylesBorins
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 40f5d15 commit 498edfd

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
@@ -133,7 +133,7 @@ added: v0.3.4
133133
in a free state. Only relevant if `keepAlive` is set to `true`.
134134
**Default:** `256`.
135135
* `timeout` {number} Socket timeout in milliseconds.
136-
This will set the timeout after the socket is connected.
136+
This will set the timeout when the socket is created.
137137

138138
`options` in [`socket.connect()`][] are also supported.
139139

0 commit comments

Comments
 (0)