mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
doc,net: document socket.timeout
PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
@@ -998,6 +998,16 @@ If `timeout` is 0, then the existing idle timeout is disabled.
|
||||
The optional `callback` parameter will be added as a one-time listener for the
|
||||
[`'timeout'`][] event.
|
||||
|
||||
### `socket.timeout`
|
||||
<!-- YAML
|
||||
added: v10.7.0
|
||||
-->
|
||||
|
||||
* {number|undefined}
|
||||
|
||||
The socket timeout in milliseconds as set by [`socket.setTimeout()`][].
|
||||
It is `undefined` if a timeout has not been set.
|
||||
|
||||
### `socket.unref()`
|
||||
<!-- YAML
|
||||
added: v0.9.1
|
||||
|
||||
Reference in New Issue
Block a user