Files
Auto_Bangumi/backend
Estrella Pan 0d99774408 fix(downloader): cap qB httpx keepalive to prevent stale-socket storms (#984)
After ~1 hour of idle, the next renamer cycle would flood the log with
"Server disconnected without sending a response" errors. This reproduces
most often when AB sits behind a proxy (host-network Orbstack, local 127/8
proxy, remote qB) that silently reaps idle TCP sockets while httpx
continues to reuse them from its connection pool.

Apply the same httpx.Limits recipe used for the shared RSS client in
#1018:
  - keepalive_expiry=30s so the pool drops idle sockets before a proxy /
    NAS does
  - max_keepalive_connections=5 / max_connections=10 so parallel renamer
    calls can't flood the fronting proxy

Closes #984
2026-04-19 13:09:11 +02:00
..