Skip to main content

RESUME_BACKOFF_STEP_SECS

Constant RESUME_BACKOFF_STEP_SECS 

Source
const RESUME_BACKOFF_STEP_SECS: u64 = 2;
Expand description

Seconds added per attempt before retrying a stream that failed with an error.

Attempt 1 waits this long, attempt 2 twice as long, and so on — a spread that covers roughly a quarter-minute of outage across the retry budget without leaving the user staring at a dead notification when the network is truly gone. Only read by the Android error callback (#[cfg(android)]), but compiled and unit-tested on the host, hence allow(dead_code) off-Android.