[issue28708] Low FD_SETSIZE limit on Windows

Steve Dower report at bugs.python.org
Wed Jun 5 12:21:33 EDT 2019


Steve Dower <steve.dower at python.org> added the comment:

> How does select() know the FD_SETSIZE?

It doesn't have to. The actual number of descriptors is passed in, and the API presumably assumes that FD_SETSIZE is bigger than that (or else the caller would have crashed writing to invalid memory).

I don't see why we'd make it a parameter though. If we have all the descriptors, just allocate a big enough array and pass it in?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue28708>
_______________________________________


More information about the Python-bugs-list mailing list