Skip to main content

CHANNEL_TCP_KEEPALIVE_IDLE

Static CHANNEL_TCP_KEEPALIVE_IDLE 

Source
pub static CHANNEL_TCP_KEEPALIVE_IDLE: Key<Duration>
Expand description

Kernel TCP keepalive idle period: the gap from last activity until the kernel sends its first probe on connections created by hyperactor’s channel layer. On a healthy idle connection this is also the probe cadence (each ACK resets the timer). Total peer-death detection time is idle + probe_budget where probe_budget = TCP_KEEPALIVE_INTERVAL * TCP_KEEPALIVE_RETRIES (private constants in channel::net, currently 15s). Larger values reduce keepalive ACK traffic at the cost of slower peer-death detection.