Commit 51d8136
Add HTTP timeouts on endpoint POST and binary GET
Net::HTTP defaults to 60s open + 60s read. A hung
local.browserstack.com or CDN can stall the binary download for
multiple minutes before the user sees an error.
- fetch_download_source_url.rb: open_timeout=10, read_timeout=15
(small JSON response, fast)
- localbinary.rb download_to: open_timeout=10, read_timeout=30
(read_timeout bounds per-read stalls, not total transfer)
Code review finding from LOC-6563 review.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 730b888 commit 51d8136
2 files changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
28 | 30 | | |
29 | 31 | | |
30 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| 122 | + | |
| 123 | + | |
122 | 124 | | |
123 | 125 | | |
124 | 126 | | |
| |||
0 commit comments