From 9d65e974dbb9d13b7aa60d05e3449cc073f7586f Mon Sep 17 00:00:00 2001 From: Luigi Pinca Date: Mon, 14 Jan 2019 10:20:34 +0100 Subject: [PATCH] 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. --- doc/api/http.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/http.md b/doc/api/http.md index e4474c773a0658..592d2a1609dbb1 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -127,7 +127,7 @@ added: v0.3.4 in a free state. Only relevant if `keepAlive` is set to `true`. **Default:** `256`. * `timeout` {number} Socket timeout in milliseconds. - This will set the timeout after the socket is connected. + This will set the timeout when the socket is created. `options` in [`socket.connect()`][] are also supported.