Skip to content
Snippets Groups Projects

refresh: use exponential retry backoff with base 2 rather than 3

Merged David Vasek requested to merge exponential_retry_backoff into master
  1. Jan 06, 2022
    • David Vasek's avatar
      refresh: code cleanup · cf02beb7
      David Vasek authored
      cf02beb7
    • David Vasek's avatar
      refresh: use exponential retry backoff with base 2 rather than 3 · 95950429
      David Vasek authored
      By using the cumulative time since the zone expiration (instead of the last
      time interval) we achieve an approximation of exponential retry backoff with
      base 2 (rather than with base 3, as it was until now). Now, with every retry attempt,
      the interval between refreshes only doubles (with up to 30 second jitter).
      
      This change helps avoid excessive waiting for a refresh when a few early attempts
      fail.
      95950429
Loading