Skip to content

fix(relay): back off device login polling on throttling - #191

Merged
abruption merged 1 commit into
mainfrom
fix/174-device-login-backoff
Sep 24, 2026
Merged

abruption merged 1 commit into
mainfrom
fix/174-device-login-backoff

Conversation

@abruption

Copy link
Copy Markdown
Owner

Fixes #174.\n\nDevice authorization polling now treats HTTP 429 as throttling, increases the interval by at least five seconds, and honors a bounded Retry-After value. It also backs off after transient polling timeouts while the original device code remains valid. Terminal authorization errors still stop immediately. Only the idempotent token poll is retried; the initial device-code request and other control operations are unchanged.\n\nRetry-After is reduced to a numeric delay and never serialized in diagnostics. The sleep is bounded by the device-code deadline, so a long Retry-After cannot keep the command waiting past expiry.\n\nValidation: 123 relay tests passed locally (Python 3.14.7, websockets 17.1); git diff --check passed.

@abruption
abruption force-pushed the fix/174-device-login-backoff branch from e2ce0f8 to e2df9a2 Compare September 24, 2026 12:03
@abruption
abruption merged commit 38ab2bc into main Sep 24, 2026
24 checks passed
@abruption
abruption deleted the fix/174-device-login-backoff branch September 27, 2026 01:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(relay): device login should back off on 429/slow_down instead of exiting

1 participant