Commit b2e1d7e
committed
Set tight HTTP timeouts on GrowthBook feature fetches
The SDK defaults to no timeout, so a slow CDN response could block a
worker indefinitely on the periodic refresh. Set http_connect_timeout=1
and http_read_timeout=2 on both the warmup and per-request instances.1 parent e69e17a commit b2e1d7e
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
| 49 | + | |
48 | 50 | | |
49 | 51 | | |
50 | 52 | | |
| |||
72 | 74 | | |
73 | 75 | | |
74 | 76 | | |
| 77 | + | |
| 78 | + | |
75 | 79 | | |
76 | 80 | | |
77 | 81 | | |
| |||
0 commit comments