EventDriverSockets.setKeepAliveParams

Enables keepalive for the TCP socket and sets additional parameters. Silently ignores unsupported systems (anything but Windows and Linux).

interface EventDriverSockets
@safe nothrow
void
setKeepAliveParams
(,
Duration idle
,
Duration interval
,
int probeCount = 5
)

Parameters

socket StreamSocketFD

Socket file descriptor to set options on.

idle Duration

The time the connection needs to remain idle before TCP starts sending keepalive probes.

interval Duration

The time between individual keepalive probes.

probeCount int

The maximum number of keepalive probes TCP should send before dropping the connection. Has no effect on Windows.

Meta