Commit 7c01b98
authored
doc: clarify sub-1000ms behavior in socket.setKeepAlive
The current documentation states that `initialDelay` and `interval`
are divided by 1000 and rounded down, but does not explicitly mention
that values less than 1000ms will result in 0 seconds. This can lead
to confusion when users pass values like 400ms expecting sub-second
keepalive delays.
Add a concrete example showing that 400ms rounds down to 0 seconds.
Refs: #57712
Signed-off-by: haramjeong <04harams77@gmail.com>
PR-URL: #65869
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com>1 parent 37305e1 commit 7c01b98
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1696 | 1696 | | |
1697 | 1697 | | |
1698 | 1698 | | |
1699 | | - | |
| 1699 | + | |
| 1700 | + | |
| 1701 | + | |
1700 | 1702 | | |
1701 | 1703 | | |
1702 | 1704 | | |
| |||
0 commit comments