Skip to main content

MAX_IDLE_KEEP

Constant MAX_IDLE_KEEP 

Source
pub const MAX_IDLE_KEEP: usize = 8;
Expand description

Maximum number of idle connections kept in the pool, regardless of max_size. Bounding the idle reserve prevents the pool from hoarding dozens of idle tunnels after a burst (which then all get validated with a 3s Ping and discarded -> “Connection validation failed” churn).