Commit fb22fbd
committed
fix(httpclient): raise image-host upload deadline to 120s
The whole-request deadline for image hosting was 60s. A 2160p screenshot
failed against reelflix with:
Post "https://img.reelflix.cc/api/1/upload": context deadline exceeded
(Client.Timeout exceeded while awaiting headers)
"while awaiting headers" means the body was already sent and the deadline
expired waiting on the host to answer, so this is host processing time
rather than local transfer. The same batch reported
mean_attempt_duration=42.02s across 6 attempts, and since failed attempts
are timed too, the 5 successes averaged around 38s. That leaves barely
1.5x headroom against a 60s ceiling for an operation with a long tail.
120s restores roughly 3x headroom. UploadTimeout is consumed only by
internal/imagehosting; every tracker upload path uses DefaultTimeout, so
this does not widen any other deadline.1 parent d4ded9d commit fb22fbd
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
15 | 20 | | |
16 | 21 | | |
17 | 22 | | |
| |||
0 commit comments