Exponential backoff with jitter for the no-Retry-After fallback path.
sleep = min(maxMs, baseMs * 2^attempt + random() * jitterMs)
Attempt numbers are zero-based: attempt=0 is the first retry (i.e. the sleep between request 1 and request 2). Negative attempt numbers are clamped to 0.
attempt=0
Exponential backoff with jitter for the no-Retry-After fallback path.
sleep = min(maxMs, baseMs * 2^attempt + random() * jitterMs)Attempt numbers are zero-based:
attempt=0is the first retry (i.e. the sleep between request 1 and request 2). Negative attempt numbers are clamped to 0.