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 andzn
Recipients David Hirschfeld, andzn, desbma, paul.moore, pitrou, steve.dower, tim.golden, vstinner, zach.ware
Date 2019-06-05.12:53:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1559739233.13.0.969823738901.issue28708@roundup.psfhosted.org>
In-reply-to
Content
> Would it be possible to make FD_SETSIZE configurable at runtime, at least on Windows? IMHO it would be a better approach.

That would be awesome, but it doesn't look like it would be possible. As I have already pointed out in my previous comment:

> I'm not sure this can be totally dynamic on Windows. The problem is the fd_set struct which is defined in Winsock2.h
>
> typedef struct fd_set {
>         u_int fd_count;               /* how many are SET? */
>         SOCKET  fd_array[FD_SETSIZE];   /* an array of SOCKETs */
> } fd_set;
>
> The heap-allocated pylists are converted into fd_set structs which are always allocated on the stack btw. The problem is there's no way to create a fd_set of a desired FD_SETSIZE at runtime.
History
Date User Action Args
2019-06-05 12:53:53andznsetrecipients: + andzn, paul.moore, pitrou, vstinner, tim.golden, zach.ware, desbma, steve.dower, David Hirschfeld
2019-06-05 12:53:53andznsetmessageid: <1559739233.13.0.969823738901.issue28708@roundup.psfhosted.org>
2019-06-05 12:53:53andznlinkissue28708 messages
2019-06-05 12:53:53andzncreate