Commit 8d7ce49
fix: keep pre-1.8.3 gateways stoppable and classify client aborts by signal
Two regressions in the unreleased 1.8.3 hardening:
1. `ccmr stop` required a local identity record that pre-1.8.3 gateways
never wrote, while `ccmr claude` refused to reuse them - circular
guidance with manual `kill` as the only exit. Gateways that do not
advertise an instance_id now keep the 1.8.2 trust level (self-reported
pid via /health); the strict identity check applies only to gateways
that opted in by advertising one.
2. abort(reason) rejects fetch with the caller's reason, whose name is
not 'AbortError', so a client disconnect was classified as a retryable
connection error: it logged failover attempts and polluted /usage
error counters. Aborts are now classified by the signal and never
trigger failover or error accounting.
Adds first direct coverage of the default identity-verification path
(write/read roundtrip, legacy trust, unmatched instance_id).1 parent 13bfbf9 commit 8d7ce49
14 files changed
Lines changed: 305 additions & 51 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
| 107 | + | |
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| |||
475 | 475 | | |
476 | 476 | | |
477 | 477 | | |
478 | | - | |
| 478 | + | |
479 | 479 | | |
480 | 480 | | |
481 | | - | |
| 481 | + | |
482 | 482 | | |
483 | 483 | | |
484 | 484 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments