Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d6bd78f

Browse filesBrowse files
kobelbdanielleadams
authored andcommitted
doc,net: document socket.timeout
PR-URL: #34543 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Harshitha K P <harshitha014@gmail.com> Reviewed-By: Pranshu Srivastava <rexagod@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Denys Otrishko <shishugi@gmail.com>
1 parent 99cb362 commit d6bd78f
Copy full SHA for d6bd78f

File tree

Expand file treeCollapse file tree

1 file changed

+10
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+10
-0
lines changed
Open diff view settings
Collapse file

‎doc/api/net.md‎

Copy file name to clipboardExpand all lines: doc/api/net.md
+10Lines changed: 10 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -998,6 +998,16 @@ If `timeout` is 0, then the existing idle timeout is disabled.
998998
The optional `callback` parameter will be added as a one-time listener for the
999999
[`'timeout'`][] event.
10001000

1001+
### `socket.timeout`
1002+
<!-- YAML
1003+
added: v10.7.0
1004+
-->
1005+
1006+
* {number|undefined}
1007+
1008+
The socket timeout in milliseconds as set by [`socket.setTimeout()`][].
1009+
It is `undefined` if a timeout has not been set.
1010+
10011011
### `socket.unref()`
10021012
<!-- YAML
10031013
added: v0.9.1

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.