Python-Tls-Client icon indicating copy to clipboard operation
Python-Tls-Client copied to clipboard

Timeout sometimes not working

Open ghost opened this issue 1 year ago • 1 comments

Hello, I'm using your library in a script where I use also the threading library for multi-threading. When doing requests setting a 10 seconds timeout argument, sometimes it's possible that it doesn't work, producing errors like failed to do request: Post "https://www.example.com": EOF (Client.Timeout exceeded while awaiting headers) 10 minutes after starting.

Edit: I noticed that this happens when I use residential proxies whether using multi-threading or not. Sometimes those proxies are trash and when that happens sometimes the timeouts don't work for some reason and they get activated a lot of time later than expected. Using the library requests, the timeout gets activated and I get this error: HTTPSConnectionPool(host='www.example.com', port=443): Max retries exceeded with url: /example/page (Caused by ProxyError('Cannot connect to proxy.', TimeoutError('_ssl.c:990: The handshake operation timed out')))

ghost avatar Jul 06 '24 15:07 ghost

I got the same problem since months

Spikesdev avatar Nov 17 '24 12:11 Spikesdev