LaurentGomila/SFML — Issue #153: Increase FD_SETSIZE
Author: TankOs
Created: 2012-01-06 15:05:29+00:00
State: open

On Windows, FD_SETSIZE (the maximum number of allowed entries in the fd_set structure) is limited to 64 which is quite low. So when doing a select() with more than 64 you run into trouble.

One could either create groups with FD_SETSIZE entries and call select() multiple times or increase FD_SETSIZE by defining the macro before Winsock2.h is included.

On Linux the default is 1024.

More info: http://msdn.microsoft.com/en-us/library/windows/desktop/ms740141(v=vs.85).aspx