Repository navigation
Use poll instead of select to support large file descriptor numbers - #1909
jasonbridges wants to merge 9 commits into
Conversation
|
I wasn't able to find an issue with select.poll using Python3 on OS X. What OS'es are not supported by select.poll? |
|
Python 2 for macOSPython 3 for macOSPython 2 for WindowsPython 3 for Windows |
|
OK, I can add windows support. Should we consider supporting python2 still? |
|
I consider that we should support Python 2.7 because README.rst and setup.py in master branch say supporting Python 2.7. If Python 2.7 is not needed to support, we could use selectors module rather than |
|
It's my understanding that Python 2 support will be entering deprecated status relatively soon. @bitprophet, can you comment on the Python 2 deprecation timeframe and value of implementing Python 2 support here? |
|
That's correct. I'm planning to pop out one more bugfix and/or feature release with the existing support 'window' (2.7, 3.4 etc) after which I'll enact https://bitprophet.org/blog/2021/02/25/byethon2/#how-exactly . I've already got quite a list of what wants including in said release so this PR would be a good candidate for the subsequent, Python 3.6+-only, release. |
|
Thanks, I'll update accordingly. |
Processes that have a large number of file descriptors or even a few with large numbers will fail using the library in the current state due to file descriptors larger than 1024 which select can't handle. ref: https://man7.org/linux/man-pages/man2/select.2.html (search for FD_SETSIZE)