-
-
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
ClientConnectorError: "Too many open files" with ClientSession #2094
Comments
You have to increase number of available file descriptors |
Ok, I'm away for a week now but will look when I get back. I also got some
odd SSL errors printed.
…On 14 Jul 2017 2:16 pm, "Nikolay Kim" ***@***.***> wrote:
You have to increase number of available file descriptors
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2094 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AD2jGaC9ZcagXTAaZT5W2VjvIDsqKh3Rks5sN2oXgaJpZM4OYMgk>
.
|
I don't think we have anything actionable in this issue, this is not aiohttp related. |
I think you should include more attributes on ClientConnectorError. |
Currently you have to parse the error message to find the reason for the ClientConnectorError. |
os api returns just error code (number), and you get it as first parameter. specifically "errno 24" is not runtime error, it is os configuration problem. |
would you provide PR? |
Will do
…On 17 Jul 2017 9:03 pm, "Nikolay Kim" ***@***.***> wrote:
would you provide PR?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2094 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AD2jGS9ij-dt3Xo624lBT5Qc88XsvXMrks5sO74kgaJpZM4OYMgk>
.
|
Fixed by #2122 |
Long story short
I'm getting
ClientConnectorError: [Errno 24] Cannot connect to host <domain>:80 ssl:False [Too many open files]
when downloading from lots of different urls:ClientConnectorError
could include attributes giving details on the error rather than just formatting the message.Possibly related to or a duplicate of #1821 #1907 #764 #1667
Expected (hoped for) behaviour
ClientSession
to be able to make 100k's of requests to 100k's of hosts without intermittent errors occurring.Steps to reproduce
Download file from here and extract to
top-1m.csv
, runActual behaviour
Output of the script.
Note that of the 2000 requests, >800 returned a
ClientConnectorError
withtoo many open files
Your environment
Ubuntu 17.04, Python 3.6.1, aiohttp 2.2.3
The text was updated successfully, but these errors were encountered: