Commit 9d11ab8
fix: propagate context cancellation during license pre-flight
The offline-degradation branch in validateLicense treated any non-LicenseError
as an unreachable server. A cancelled caller context (Ctrl+C) also surfaces
there, so it was swallowed — printing a misleading "Could not reach the license
server" warning and letting the start continue. Propagate ctx.Err() before
degrading; the client's own request timeout is distinct from ctx and still
falls through to the offline fallback.
Generated with [Linear](https://linear.app/localstack/issue/DEVX-703/support-enterprise-environments-that-cannot-pull-from-docker-hub#agent-session-77e3f9fc)
Co-authored-by: linear-code[bot] <222613912+linear-code[bot]@users.noreply.github.com>1 parent d15dacb commit 9d11ab8
2 files changed
Lines changed: 34 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
605 | 605 | | |
606 | 606 | | |
607 | 607 | | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
608 | 614 | | |
609 | 615 | | |
610 | 616 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
492 | 492 | | |
493 | 493 | | |
494 | 494 | | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
495 | 523 | | |
496 | 524 | | |
497 | 525 | | |
| |||
0 commit comments