From fc17ead531100f96c05a5550cb34d93cb5833368 Mon Sep 17 00:00:00 2001 From: kobelb Date: Tue, 28 Jul 2020 16:57:31 -0700 Subject: [PATCH] doc,net: document socket.timeout PR-URL: https://github.com/nodejs/node/pull/34543 Reviewed-By: Rich Trott Reviewed-By: Trivikram Kamat Reviewed-By: Harshitha K P Reviewed-By: Pranshu Srivastava Reviewed-By: James M Snell Reviewed-By: Luigi Pinca Reviewed-By: Denys Otrishko --- doc/api/net.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/doc/api/net.md b/doc/api/net.md index ea8d670a7eeb64..522f0d6232cd61 100644 --- a/doc/api/net.md +++ b/doc/api/net.md @@ -934,6 +934,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` + + +* {number|undefined} + +The socket timeout in milliseconds as set by [`socket.setTimeout()`][]. +It is `undefined` if a timeout has not been set. + ### `socket.unref()`