Commit 3062747
authored
fix(seeder): force HTTP/1.1 ALPN in proxy tunnel to prevent h2 parse error (koala73#2454)
* chore: redeploy to pick up WORLDMONITOR_VALID_KEYS fix
* fix(seeder): force HTTP/1.1 ALPN in proxy tunnel to prevent h2 parse error
api.stlouisfed.org supports HTTP/2. tls.connect() includes h2 in ALPN by
default, causing the server to negotiate HTTP/2. But https.request uses
HTTP/1.1 parser, so HTTP/2 binary frames fail with:
Parse Error: Expected HTTP/, RTSP/ or ICE/
Fix: ALPNProtocols: ['http/1.1'] forces HTTP/1.1 over the tunnel.
* fix(seeder): increase FRED direct fetch timeout 10s→20s
WALCL is first in FRED_SERIES and fires at cold container start.
TCP + TLS + FRED API response on a cold connection was hitting the 10s
limit. All other series benefit from the established connection pool.
20s matches the original curl --max-time 15 plus handshake overhead.1 parent c8a66d2 commit 3062747
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
369 | 369 | | |
370 | 370 | | |
371 | 371 | | |
372 | | - | |
| 372 | + | |
373 | 373 | | |
374 | 374 | | |
375 | 375 | | |
| |||
408 | 408 | | |
409 | 409 | | |
410 | 410 | | |
411 | | - | |
| 411 | + | |
412 | 412 | | |
413 | 413 | | |
414 | 414 | | |
| |||
0 commit comments