Commit 9dda289
committed
fix: add timeout and scope retry to connection errors in TurnstileClient
- Add ->timeout(5) to bound max wall time to ~15s during Cloudflare outages
- Restrict retry to ConnectionException only so success:false responses
(valid HTTP 200) do not trigger wasteful retries1 parent 48dd294 commit 9dda289
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
33 | | - | |
| 34 | + | |
| 35 | + | |
34 | 36 | | |
35 | 37 | | |
36 | 38 | | |
| |||
0 commit comments