You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Matches the robustness fix already landed in magic-sessionmanager and
magic-link.
Before this change, 3 of the 4 outbound license calls used raw
`fetch()` with no timeout — the fourth had a manually-rolled 5s
AbortController that was too aggressive for cold-starting license
servers and triggered spurious
"[WARNING] License verification timeout - grace period active"
on boot even when everything was fine.
Changes in services/license-guard.js:
- New fetchWithTimeout helper (same contract as in magic-sessionmanager
and magic-link): 12s default timeout, 1 automatic retry with a 750ms
backoff, each attempt with a fresh AbortController. Overridable via
MAGIC_LICENSE_TIMEOUT_MS env var.
- verifyLicense: the hand-rolled 5s AbortController is removed; the
call now uses fetchWithTimeout. The grace-period log message is
demoted from `warn` to `info` and its text is honest about what
happened ("unreachable after retry, continuing on grace period").
- create / ping / key calls: all moved over to fetchWithTimeout so
they can't silently hang the plugin boot on a slow upstream.
No behavior change for the happy path. The grace-period window (24h)
is unchanged.
0 commit comments