-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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 Error and low speed #3558
Comments
It seems that this has been a problem for many years. Rasing the |
Why is that? It should be possible to catch a |
I think this is just an issue with the server. If I log the requests that are still open (or trying to connect) I get a random selection of them. For example, from the 5000 requests, these requests were still open when the program idled: If I change the URL to point to a local aiohttp server, created with:
Then there are no errors at all. So, I don't see anything to fix in aiohttp. |
Long story short
Sorry for my poor english firstly. i am trying make http request with aiohttp/asyncio to get best speed.
i search and copy code from https://pawelmhm.github.io/asyncio/python/aiohttp/2016/04/22/asyncio-aiohttp.html,but something get wrong
Expected behaviour
it should process steable
Actual behaviour
But,in fact,sometime it works,sometime it seems "blocked"(when "blocked",cpu and network usage is 0%,only memory usage is between 100MB to 800MB),and finaly throw a timeout Error:raise asyncio.TimeoutError from None concurrent.futures._base.TimeoutError,here is code and output:
i don not know how to fix it,and more,250 requests per seconds is normal or is too low,how to improve the to be faster.
Steps to reproduce
Run the code for times
Your environment
win10,python3.7.2,aiohttp(client)3.5.4
The text was updated successfully, but these errors were encountered: