This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eryksun
Recipients David Hirschfeld, andzn, asvetlov, desbma, eryksun, paul.moore, pitrou, steve.dower, tim.golden, vstinner, zach.ware
Date 2019-06-05.18:03:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1559757790.46.0.285854545002.issue28708@roundup.psfhosted.org>
In-reply-to
Content
> It doesn't have to. The actual number of descriptors is passed in, and 

To clarify, this is the fd_count in each fd_set, i.e. Winsock uses a counted SOCKET array instead of the bitmask that's found on other platforms. Winsock select() ignores nfds [1].

If Python's select module used a dynamic fd_set in Windows, this entails directly initializing fd_count and fd_array. The FD_SET macro can't be used since it's intended for the static definition and limited to FD_SETSIZE. FD_ZERO, FD_ISSET, and FD_CLR should still work.

[1] https://docs.microsoft.com/en-us/windows/desktop/api/winsock2/nf-winsock2-select
History
Date User Action Args
2019-06-05 18:03:10eryksunsetrecipients: + eryksun, paul.moore, pitrou, vstinner, tim.golden, asvetlov, zach.ware, desbma, steve.dower, David Hirschfeld, andzn
2019-06-05 18:03:10eryksunsetmessageid: <1559757790.46.0.285854545002.issue28708@roundup.psfhosted.org>
2019-06-05 18:03:10eryksunlinkissue28708 messages
2019-06-05 18:03:10eryksuncreate