Proofline

A valid decimal `Retry-After` that overflows `float` becomes `None`, so both waits fall back to their normal polling interval.

apoorvarohilla/sdk-python#2Reviewed commit 28d21ac

Warning · Edge case

Impact

After a readable `429` or `503`, either wait can poll again after five seconds instead of returning `TIMED_OUT` without another request.

Recommended action

Distinguish overflowing delays from missing or invalid headers and suppress polling until the wait deadline for overflowing delays.

Cited code

Checked
Pull request code. The environment was not checked.
Status
Completed
Started
Completed