aboutsummaryrefslogtreecommitdiff
path: root/src/include/winproc.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-12-06 12:49:06 +0000
committerChristian Grothoff <christian@grothoff.org>2011-12-06 12:49:06 +0000
commitf39b3686f461388b6f1f61e2110832d0c7005a2f (patch)
treef6cd7f76b26e67063fe4d07a94632f867da68a89 /src/include/winproc.h
parent66ad61315839233a4cc65e98d12e36c3a3c1896e (diff)
downloadgnunet-f39b3686f461388b6f1f61e2110832d0c7005a2f.tar.gz
gnunet-f39b3686f461388b6f1f61e2110832d0c7005a2f.zip
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.
Diffstat (limited to 'src/include/winproc.h')
-rw-r--r--src/include/winproc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/include/winproc.h b/src/include/winproc.h
index 74e41edc9..e65a3b55c 100644
--- a/src/include/winproc.h
+++ b/src/include/winproc.h
@@ -34,6 +34,9 @@
34#include <sys/timeb.h> 34#include <sys/timeb.h>
35#include <time.h> 35#include <time.h>
36#include <dirent.h> 36#include <dirent.h>
37#ifndef FD_SETSIZE
38#define FD_SETSIZE 1024
39#endif
37#include <winsock2.h> 40#include <winsock2.h>
38#include <ws2tcpip.h> 41#include <ws2tcpip.h>
39#include <windows.h> 42#include <windows.h>