mirror of
https://github.com/moby/buildkit.git
synced 2026-11-06 05:16:45 +00:00
Retry HTTP 429 and 503 responses through the shared retry loop, honoring Retry-After seconds and HTTP dates without extending the attempt limit. Allow server-requested delays up to 30 seconds independently of the exponential backoff limit. Stop when the requested delay exceeds this limit instead of retrying earlier than the server requested. Close failed response bodies before waiting and preserve cancellation. Keep the cached HEAD probe best-effort, with retries applied to GET. Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>