Files
LibretroAdmin 7600667d1b net_socket: socket_poll past 64 sockets on Windows
socket_poll runs on select() on Windows, and FD_SET drops a socket
once a set holds FD_SETSIZE (64): any socket past the 64th was never
reported ready, so a poll over more sockets waited out its timeout.

A Winsock fd_set is a count and an array that select() reads up to the
count. Up to FD_SETSIZE sockets the sets stay on the stack; past it
they are allocated for the call, sized for the sockets given.

socket_poll_test polls 150 loopback UDP sockets, on Linux and under
Wine: the two given a datagram, the 71st and the last, are the only
readable ones, all are writable, and none ready times out.
2026-11-10 18:59:12 +01:00
..