mirror of
https://github.com/EstrellaXD/Auto_Bangumi.git
synced 2026-07-18 20:51:02 +08:00
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