GRI-1830: reconnect backoff with jitter #74

Merged
vivy merged 1 commit from feature/GRI-1830-backoff into dev 2026-11-08 13:04:39 +00:00
Member

Adds the Backoff pure value type for exponential reconnect backoff with full jitter.

  • Backoff::new(base, cap, factor), next_delay(&mut self, random: f64) -> Duration, reset, attempts
  • growth before jitter, cap respected, saturating arithmetic, factor 0 treated as 1, random clamped into [0.0, 1.0) and NaN-safe

Closes GRI-1830.

Adds the `Backoff` pure value type for exponential reconnect backoff with full jitter. - `Backoff::new(base, cap, factor)`, `next_delay(&mut self, random: f64) -> Duration`, `reset`, `attempts` - growth before jitter, cap respected, saturating arithmetic, factor `0` treated as `1`, `random` clamped into `[0.0, 1.0)` and NaN-safe Closes GRI-1830.
GRI-1830: reconnect backoff with jitter
Some checks failed
CI / cargo fmt (pull_request) Successful in 7s
CI / the pre-push hook (pull_request) Successful in 8s
CI / cargo deny advisories (pull_request) Failing after 53s
CI / cargo deny (pull_request) Successful in 56s
CI / repository boundary (pull_request) Successful in 6s
CI / cargo clippy (pull_request) Successful in 9m39s
CI / cargo test (pull_request) Successful in 9m44s
CI / frontend-web (pull_request) Successful in 9m40s
CI / Notify gate failed (pull_request) Has been skipped
CI / CI (pull_request) Successful in 2s
1d5399280c
vivy merged commit 36ae5c7229 into dev 2026-11-08 13:04:39 +00:00
vivy deleted branch feature/GRI-1830-backoff 2026-11-08 13:04:40 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Grimoirix/grimoire-of-digital-signage!74
No description provided.