Message344716
> 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. |
|
Date |
User |
Action |
Args |
2019-06-05 12:53:53 | andzn | set | recipients:
+ andzn, paul.moore, pitrou, vstinner, tim.golden, zach.ware, desbma, steve.dower, David Hirschfeld |
2019-06-05 12:53:53 | andzn | set | messageid: <1559739233.13.0.969823738901.issue28708@roundup.psfhosted.org> |
2019-06-05 12:53:53 | andzn | link | issue28708 messages |
2019-06-05 12:53:53 | andzn | create | |
|