Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions doc/api/net.md
Original file line number Diff line number Diff line change
Expand Up @@ -1402,6 +1402,10 @@ data packet received and the first keepalive probe. Setting `0` for
`initialDelay` will leave the value unchanged from the default
(or previous) setting.

**Note**: Node.js converts initialDelay from milliseconds to seconds and truncates any fractional part.
For example, `setKeepAlive(true, 500)` does not update the delay because it is truncated to `0`, leaving the value
unchanged, while `setKeepAlive(true, 1500)` sets it to `1` second.

Enabling the keep-alive functionality will set the following socket options:

* `SO_KEEPALIVE=1`
Expand Down
Loading