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

Windows builds of Python should up FD_SETSIZE #1241

Closed
pitrou opened this issue Nov 17, 2016 · 5 comments
Closed

Windows builds of Python should up FD_SETSIZE #1241

pitrou opened this issue Nov 17, 2016 · 5 comments

Comments

@pitrou
Copy link

pitrou commented Nov 17, 2016

Default Windows builds of Python allow 512 maximum sockets in select(). This limit can be hit when an application has many connections. This is sometimes hit by users of distributed on Windows clusters.

Bumping it to a higher value (e.g. 2048) is straightforward and does not adverse consequences. It would be nice to our users if Anaconda builds of Python had such a higher limit.

See upstream issue: https://bugs.python.org/issue28708

@mrocklin
Copy link

I would like to see this happen.

@pitrou pitrou changed the title Windows builds should up FD_SETSIZE Windows builds of Python should up FD_SETSIZE Nov 21, 2016
@pitrou
Copy link
Author

pitrou commented Nov 21, 2016

Also submitted as a PR to conda-forge: conda-forge/python-feedstock#87

@ilanschnell
Copy link
Contributor

I've created patches which set FD_SETSIZE to 2048 on Windows, which we will apply to Python 2.7 and 3.5 from now on.

@pitrou
Copy link
Author

pitrou commented Nov 23, 2016

Thank you!

@mrocklin
Copy link

Thank you @ilanschnell !

@csoja csoja closed this as completed Nov 16, 2017
mingwandroid added a commit to mingwandroid/cpython that referenced this issue Feb 17, 2019
mingwandroid added a commit to mingwandroid/cpython that referenced this issue Feb 18, 2019
mingwandroid added a commit to mingwandroid/cpython that referenced this issue Feb 20, 2019
mingwandroid added a commit to mingwandroid/cpython that referenced this issue Feb 20, 2019
mingwandroid added a commit to mingwandroid/cpython that referenced this issue Feb 23, 2019
mingwandroid added a commit to mingwandroid/cpython that referenced this issue Feb 23, 2019
mingwandroid added a commit to mingwandroid/cpython that referenced this issue Apr 24, 2019
mingwandroid added a commit to mingwandroid/cpython that referenced this issue Aug 2, 2019
mingwandroid added a commit to mingwandroid/cpython that referenced this issue Aug 6, 2019
mingwandroid added a commit to mingwandroid/cpython that referenced this issue Aug 6, 2019
mingwandroid added a commit to mingwandroid/cpython that referenced this issue Aug 9, 2019
jjhelmus pushed a commit to jjhelmus/cpython that referenced this issue Aug 7, 2020
mingwandroid added a commit to mingwandroid/cpython that referenced this issue Sep 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants