Module Tcp.Keepalive

Configuration for TCP keep-alives. Keep-alive messages are probes sent on an idle connection. If no traffic is received after a certain number of probes are sent, then the connection is assumed to have been lost.

type t = {
  1. after : Duration.t;
    (*

    initial delay before sending probes on an idle connection

    *)
  2. interval : Duration.t;
    (*

    interval between successive probes

    *)
  3. probes : int;
    (*

    total number of probes to send before assuming that, if the connection is still idle it has been lost

    *)
}

Configuration for TCP keep-alives