Skip to content

Commit b1d62ee

Browse files
update the http.request.setTimeout docs to be accurate
Refs: #8895
1 parent ae24aaf commit b1d62ee

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

doc/api/http.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -625,8 +625,9 @@ added: v0.5.9
625625
* `timeout` {number} Milliseconds before a request times out.
626626
* `callback` {Function} Optional function to be called when a timeout occurs. Same as binding to the `timeout` event.
627627

628-
Once a socket is assigned to this request and is connected
629-
[`socket.setTimeout()`][] will be called.
628+
Once a socket is assigned to this request [`socket.setTimeout()`][] will be called.
629+
630+
Note that this behaviour changes in Node.js version 9 and higher.
630631

631632
Returns `request`.
632633

0 commit comments

Comments
 (0)