Up

Module Heartbeat_config

Signature

type t
val __bin_read_t__ : (int -> t) Core_kernel.Std.Bin_prot.Read.reader
val t_of_sexp : Sexplib.Sexp.t -> t
val sexp_of_t : t -> Sexplib.Sexp.t
val create : timeout:Core_kernel.Std.Time_ns.Span.t -> send_every:Core_kernel.Std.Time_ns.Span.t -> t

We try to send a heartbeat every send_every. If we don't get a heartbeat for timeout, kill the connection. timeout is checked every time a heartbeat is sent.