Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timeout sometimes not working #124

Open
ghost opened this issue Jul 6, 2024 · 1 comment
Open

Timeout sometimes not working #124

ghost opened this issue Jul 6, 2024 · 1 comment

Comments

@ghost
Copy link

ghost commented Jul 6, 2024

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')))

@Spikesdev
Copy link

I got the same problem since months

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant