package tcpip

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Tcp.KeepaliveSource

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.

Sourcetype 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