Function EventDriverSockets.setKeepAliveParams
Enables keepalive for the TCP socket and sets additional parameters. Silently ignores unsupported systems (anything but Windows and Linux).
abstract void setKeepAliveParams
(
StreamSocketFD socket,
core .time .Duration idle,
core .time .Duration interval,
int probeCount = 5
) nothrow @safe;
Parameters
Name | Description |
---|---|
socket | Socket file descriptor to set options on. |
idle | The time the connection needs to remain idle before TCP starts sending keepalive probes. |
interval | The time between individual keepalive probes. |
probeCount | The maximum number of keepalive probes TCP should send before dropping the connection. Has no effect on Windows. |