Repository navigation
Commit a17cbe8
committed
fix(auth): use the timeout-bounded HTTP client for workspace fetch and auth probe
Follow-up from #230: cache_workspaces, api_key_authorized_workspaces,
and credentials::check_status used bare reqwest::blocking::Client::new(),
which has no request timeout — a stalled server could hang 'auth login'
or the 4xx auth-status probe (which runs inside error printing)
indefinitely. They now share raw_http::build_http_client() (300s cap +
TCP keepalive) like every other raw-HTTP path. Test-only localhost
clients are left as-is.1 parent b231f85 commit a17cbe8
2 files changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
440 | 440 | | |
441 | 441 | | |
442 | 442 | | |
443 | | - | |
| 443 | + | |
444 | 444 | | |
445 | 445 | | |
446 | 446 | | |
| |||
485 | 485 | | |
486 | 486 | | |
487 | 487 | | |
488 | | - | |
| 488 | + | |
489 | 489 | | |
490 | 490 | | |
491 | 491 | | |
| |||
0 commit comments