Commit 4e5843b8 authored by Constantin Rack's avatar Constantin Rack

Merge pull request #1543 from csiro-workspace/master

Set signaler_port to 0 which allows the OS to find a free port
parents ec98916e 7e09306c
...@@ -326,7 +326,9 @@ endif() ...@@ -326,7 +326,9 @@ endif()
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# default to Release build # default to Release build
if(NOT CMAKE_BUILD_TYPE) if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
# CMAKE_BUILD_TYPE is not used for multi-configuration generators like Visual Studio/XCode
# which instead use CMAKE_CONFIGURATION_TYPES
set(CMAKE_BUILD_TYPE Release CACHE STRING set(CMAKE_BUILD_TYPE Release CACHE STRING
"Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel." "Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel."
FORCE) FORCE)
...@@ -436,7 +438,8 @@ set(cxx-sources ...@@ -436,7 +438,8 @@ set(cxx-sources
xsub.cpp xsub.cpp
zmq.cpp zmq.cpp
zmq_utils.cpp zmq_utils.cpp
decoder_allocators.cpp) decoder_allocators.cpp
config.hpp)
set(rc-sources version.rc) set(rc-sources version.rc)
......
...@@ -89,7 +89,11 @@ namespace zmq ...@@ -89,7 +89,11 @@ namespace zmq
// On some OSes the signaler has to be emulated using a TCP // On some OSes the signaler has to be emulated using a TCP
// connection. In such cases following port is used. // connection. In such cases following port is used.
signaler_port = 5905 // If 0, it lets the OS choose a free port without requiring use of a
// global mutex. The original implementation of a Windows signaler
// socket used port 5905 instead of letting the OS choose a free port.
// https://github.com/zeromq/libzmq/issues/1542
signaler_port = 0
}; };
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment