pub struct LivenessConfig {
pub min_pto: Duration,
pub path_down_ptos: u32,
pub idle_timeout: Duration,
pub keepalive_interval: Option<Duration>,
}std only.Expand description
Tunables for path-down / session-death detection (Phase 4 / P4.3).
Fields§
§min_pto: DurationFloor for the probe-timeout period. The effective PTO is
max(min_pto, 3 × min_rtt), so an unmeasured RTT (min_rtt == 0) falls
back to this floor.
path_down_ptos: u32Consecutive probe-timeout periods of inbound silence — while we have outstanding unacked data — before the path is declared down.
idle_timeout: DurationOnce Migrating, how long to wait for the path to recover (a migrate +
validate, or any inbound life) before declaring the session dead.
keepalive_interval: Option<Duration>Idle keep-alive interval (Direction #3 — download-only liveness). When
Some(iv), an otherwise-idle Connected session (no inbound for iv
and nothing in flight) emits a small encrypted keep-alive PING every
iv. That PING is in-flight until the peer PONGs it, so a download-only
path — which sends only ACKs and otherwise has nothing in flight — gains
an outstanding probe and can detect a silently-dead downstream via the
same path_down_ptos × PTO sweep. None disables keep-alives (the path
only trips on inactivity while reliable data is already outstanding).
Implementations§
Trait Implementations§
Source§impl Clone for LivenessConfig
impl Clone for LivenessConfig
Source§fn clone(&self) -> LivenessConfig
fn clone(&self) -> LivenessConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more