Files
Auto_Bangumi/backend
ZzzzSsssWwww d849edf89f fix(network): harden shared httpx client against stale connections (#1018)
RSS loop runs every 900s but reuses the same httpx.AsyncClient connection pool, well past server keep-alive expiry (60-120s). Reusing dead sockets produced ConnectTimeout errors over time.

- Configure httpx.Limits with keepalive_expiry=60s so idle connections are dropped proactively
- reset_shared_client() called on retry paths to force a fresh pool after ConnectError
- asyncio.Semaphore(5) in refresh_rss() caps concurrent RSS fetches to avoid tripping site rate limits

Closes #1008
Related #1010, #742, #701
2026-04-19 12:50:18 +02:00
..