Files
systemd/test
Martin Pitt 264fd57aff imdsd: derive retry backoff from the retry count
A token refresh after HTTP 401 counts as a retry, but previously did not
set `retry interval`. If a 503 or a connection error followed,
`context_schedule_retry()` kept doubling the initial interval of 0, so
all remaining retries ran without delay.

Simplify and robustify this: Compute the interval from the number of
retries instead of keeping it as separate state.

Add a test case with a 401 followed by 503s.

Signed-off-by: Martin Pitt <martin@amutable.com>
(cherry picked from commit 068054acef)
(cherry picked from commit e92a09c97a)
2026-11-05 14:30:22 +00:00
..
…
…