diff --git a/doc/api/net.md b/doc/api/net.md index 699b1ba4d573b8..17ef5c9d0cb9d6 100644 --- a/doc/api/net.md +++ b/doc/api/net.md @@ -1006,6 +1006,10 @@ Set the encoding for the socket as a [Readable Stream][]. See ### `socket.setKeepAlive([enable][, initialDelay])` * `enable` {boolean} **Default:** `false` @@ -1020,6 +1024,12 @@ data packet received and the first keepalive probe. Setting `0` for `initialDelay` will leave the value unchanged from the default (or previous) setting. +Enabling the keep-alive functionality will set the following socket options: +- `SO_KEEPALIVE=1` +- `TCP_KEEPIDLE=initialDelay` +- `TCP_KEEPCNT=10` +- `TCP_KEEPINTVL=1` + ### `socket.setNoDelay([noDelay])`