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 steve.dower
Recipients David Hirschfeld, andzn, asvetlov, desbma, paul.moore, pitrou, steve.dower, tim.golden, vstinner, zach.ware
Date 2019-06-05.16:21:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1559751693.85.0.187275917436.issue28708@roundup.psfhosted.org>
In-reply-to
Content
> 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?
History
Date User Action Args
2019-06-05 16:21:33steve.dowersetrecipients: + steve.dower, paul.moore, pitrou, vstinner, tim.golden, asvetlov, zach.ware, desbma, David Hirschfeld, andzn
2019-06-05 16:21:33steve.dowersetmessageid: <1559751693.85.0.187275917436.issue28708@roundup.psfhosted.org>
2019-06-05 16:21:33steve.dowerlinkissue28708 messages
2019-06-05 16:21:33steve.dowercreate