Skip to main content

next_backoff

Function next_backoff 

Source
fn next_backoff(current: Duration, healthy: bool) -> Duration
Expand description

Next reconnect delay after a session ended: reset to the floor when the connection proved healthy (stayed up past MIN_HEALTHY_UPTIME), else escalate (double, capped at BACKOFF_CAP).