diff options
author | grothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96> | 2011-12-06 12:49:06 +0000 |
---|---|---|
committer | grothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96> | 2011-12-06 12:49:06 +0000 |
commit | 4414af1c2bc9d636736c90cd9e7ee576f0119ae5 (patch) | |
tree | f6cd7f76b26e67063fe4d07a94632f867da68a89 /src/nat | |
parent | 8ed39ec9b69a4e4f9c1461f36a522f2682717f4e (diff) |
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.
git-svn-id: https://gnunet.org/svn/gnunet@18445 140774ce-b5e7-0310-ab8b-a85725594a96
Diffstat (limited to 'src/nat')
-rw-r--r-- | src/nat/gnunet-helper-nat-client-windows.c | 1 | ||||
-rw-r--r-- | src/nat/gnunet-helper-nat-server-windows.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/nat/gnunet-helper-nat-client-windows.c b/src/nat/gnunet-helper-nat-client-windows.c index 864c911b03..47fbc0b865 100644 --- a/src/nat/gnunet-helper-nat-client-windows.c +++ b/src/nat/gnunet-helper-nat-client-windows.c @@ -43,6 +43,7 @@ */ #define _GNU_SOURCE +#define FD_SETSIZE 1024 #include <winsock2.h> #include <ws2tcpip.h> #include <sys/time.h> diff --git a/src/nat/gnunet-helper-nat-server-windows.c b/src/nat/gnunet-helper-nat-server-windows.c index 8386a15b14..b15752d8ec 100644 --- a/src/nat/gnunet-helper-nat-server-windows.c +++ b/src/nat/gnunet-helper-nat-server-windows.c @@ -42,7 +42,7 @@ */ #define _GNU_SOURCE - +#define FD_SETSIZE 1024 #include <winsock2.h> #include <ws2tcpip.h> #include <sys/time.h> |