Skip to main content

next_recovery_delay

Function next_recovery_delay 

Source
fn next_recovery_delay(current_delay_ms: u32) -> u32
Expand description

Grows reconnect delay by 1.5x while keeping the backoff bounded.

The sequence is modest so short-lived outages recover quickly, but repeated failures still spread out retries and avoid hot-loop reconnects.