Commit 1b45ce1
committed
fix: add 10s timeout to registry URL validation to prevent indefinite hang
When --registry-url points to an unreachable host, the CLI hangs forever
because fetch() has no timeout. Add AbortController with 10s timeout,
switch to HEAD method, and provide distinct error messages for timeout
vs other network failures.
Closes #2027
https://claude.ai/code/session_01K5UYcnS3skK6SKhFz3dcZs1 parent 32192aa commit 1b45ce1
1 file changed
+12
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
11 | 13 | | |
12 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
13 | 18 | | |
14 | 19 | | |
15 | 20 | | |
16 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
17 | 25 | | |
| 26 | + | |
| 27 | + | |
18 | 28 | | |
19 | 29 | | |
0 commit comments