Commit 9c58ad6
fix(push): use dedicated dispatcher for relay to avoid stale keep-alive sockets
Cloudflare edge half-closes idle keep-alive sockets, leaving undici's pool
with stale connections that produce a persistent 502 storm until the process
restarts. Use a dedicated Agent with short keepAliveTimeout (4s) so bad
sockets are evicted quickly and the next request opens a fresh connection.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 3a0ca77 commit 9c58ad6
1 file changed
+15
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
16 | 29 | | |
17 | 30 | | |
18 | 31 | | |
| |||
184 | 197 | | |
185 | 198 | | |
186 | 199 | | |
| 200 | + | |
| 201 | + | |
187 | 202 | | |
188 | 203 | | |
189 | 204 | | |
| |||
0 commit comments