mirror of
https://github.com/soxoj/maigret.git
synced 2026-08-17 19:25:41 +02:00
Rotating/residential proxies often drop a connection mid-request (truncated body, closed socket, failed handshake) instead of failing outright. These were previously lumped into "Unexpected" and never retried, silently discarding otherwise-successful checks. - Retry once on ClientPayloadError, ServerDisconnectedError, and aiohttp_socks' ProxyConnectionError/ProxyTimeoutError (aiohttp checker), and on CurlError (curl_cffi checker) — covers truncated responses, dropped connections, CONNECT-tunnel 502s, and TLS handshake failures. - Fix the proxy-error except clause: it caught python_socks' ProxyError, but aiohttp_socks (the connector actually in use) raises its own unrelated same-named exceptions, so it never fired. - Generic ProxyError (e.g. bad credentials) is classified but NOT retried — it fails identically every attempt.