LRN: Fixing Mantis #1974: On W32 winsock2.h defines FD_SETSIZE (if it was not defined...
authorChristian Grothoff <christian@grothoff.org>
Tue, 6 Dec 2011 12:49:06 +0000 (12:49 +0000)
committerChristian Grothoff <christian@grothoff.org>
Tue, 6 Dec 2011 12:49:06 +0000 (12:49 +0000)
commitf39b3686f461388b6f1f61e2110832d0c7005a2f
treef6cd7f76b26e67063fe4d07a94632f867da68a89
parent66ad61315839233a4cc65e98d12e36c3a3c1896e
LRN: Fixing Mantis #1974: On W32 winsock2.h defines FD_SETSIZE (if it was not defined before inclusion of the header) to 64, which means that it's not possible to select on more than 64 sockets at once. This might work during the tests, but in the wild people might want to have more than 60 connections, at least in the transport service.
The patch attached should increase the limit to 1024.
src/include/platform.h
src/include/winproc.h
src/nat/gnunet-helper-nat-client-windows.c
src/nat/gnunet-helper-nat-server-windows.c