From 0b92831b2a82c3bbc0e9371662c546b94915a3ea Mon Sep 17 00:00:00 2001 From: Richard Newton Date: Thu, 7 Nov 2013 18:26:13 +0000 Subject: [PATCH] Make FD_SETSIZE = ZMQ_MAX_SOCKETS_DFLT + 1 so there is room for the repear socket. --- CMakeLists.txt | 2 +- builds/mingw32/Makefile.mingw32 | 2 +- builds/msvc/libzmq/libzmq.vcproj | 10 +++++----- builds/msvc/properties/ZeroMQ.props | 2 +- builds/msvc/properties/ZeroMQ_Static.props | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3a33117c..65097b69 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -269,7 +269,7 @@ if(MSVC) -DWIN32 -DDLL_EXPORT # NB: May require tweaking for highly connected applications. - -DFD_SETSIZE=1024 + -DFD_SETSIZE=1025 -D_CRT_SECURE_NO_WARNINGS) # Parallel make. diff --git a/builds/mingw32/Makefile.mingw32 b/builds/mingw32/Makefile.mingw32 index 447cf504..95cea7d3 100644 --- a/builds/mingw32/Makefile.mingw32 +++ b/builds/mingw32/Makefile.mingw32 @@ -1,5 +1,5 @@ CC=gcc -CFLAGS=-Wall -Os -g -DDLL_EXPORT -DFD_SETSIZE=1024 -I. +CFLAGS=-Wall -Os -g -DDLL_EXPORT -DFD_SETSIZE=1025 -I. LIBS=-lws2_32 OBJS = ctx.o reaper.o dist.o err.o \ diff --git a/builds/msvc/libzmq/libzmq.vcproj b/builds/msvc/libzmq/libzmq.vcproj index 9cdef064..01adfd1a 100644 --- a/builds/msvc/libzmq/libzmq.vcproj +++ b/builds/msvc/libzmq/libzmq.vcproj @@ -40,7 +40,7 @@ /> copy ..\platform.hpp ..\..\..\src - _CRT_SECURE_NO_WARNINGS;DLL_EXPORT;FD_SETSIZE=1024;%(PreprocessorDefinitions) + _CRT_SECURE_NO_WARNINGS;DLL_EXPORT;FD_SETSIZE=1025;%(PreprocessorDefinitions) Ws2_32.lib;Rpcrt4.lib;%(AdditionalDependencies) diff --git a/builds/msvc/properties/ZeroMQ_Static.props b/builds/msvc/properties/ZeroMQ_Static.props index dec17f85..9cdb107a 100644 --- a/builds/msvc/properties/ZeroMQ_Static.props +++ b/builds/msvc/properties/ZeroMQ_Static.props @@ -13,7 +13,7 @@ copy ..\platform.hpp ..\..\..\src - _CRT_SECURE_NO_WARNINGS;ZMQ_STATIC;FD_SETSIZE=1024;%(PreprocessorDefinitions) + _CRT_SECURE_NO_WARNINGS;ZMQ_STATIC;FD_SETSIZE=1025;%(PreprocessorDefinitions) Ws2_32.lib;Rpcrt4.lib;%(AdditionalDependencies)