Skip to main content

DEFAULT_KEEP_ALIVE

Constant DEFAULT_KEEP_ALIVE 

Source
pub const DEFAULT_KEEP_ALIVE: Duration;
Expand description

How often a leg sends a keep-alive when nothing it was given names an interval.

It is shortened to half the leg’s own idle timeout, never to the peer’s. A peer that advertises an idle timeout of this interval or less still closes a silent connection; set keep_alive_interval below it.