mirror of
https://github.com/Twigpine/zero.git
synced 2026-11-12 15:02:21 -10:00
Raise retry attempts 3 -> 6 and replace the attempt*400ms linear backoff with exponential 2s, 4s, 8s, 16s, 30s (capped) when the server supplies no Retry-After. Rate-limit windows are measured in seconds; retrying a 429 after 400ms almost always burned the attempt while still limited. Worst-case a headless run now survives a ~60s rate-limit window instead of ~1.2s. Retry-After still wins when present, still capped at 30s, and the only-replay-unaccepted-requests policy (429/503/529) is unchanged. Co-Authored-By: Claude Fable 5 <[email protected]>