Skip to content

Commit

Permalink
update the http.request.setTimeout docs to be accurate
Browse files Browse the repository at this point in the history
Refs: #8895
  • Loading branch information
jbunton-atlassian committed Dec 19, 2018
1 parent ae24aaf commit b1d62ee
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions doc/api/http.md
Expand Up @@ -625,8 +625,9 @@ added: v0.5.9
* `timeout` {number} Milliseconds before a request times out.
* `callback` {Function} Optional function to be called when a timeout occurs. Same as binding to the `timeout` event.

Once a socket is assigned to this request and is connected
[`socket.setTimeout()`][] will be called.
Once a socket is assigned to this request [`socket.setTimeout()`][] will be called.

Note that this behaviour changes in Node.js version 9 and higher.

Returns `request`.

Expand Down

0 comments on commit b1d62ee

Please sign in to comment.