0
0
mirror of https://github.com/zeromq/libzmq.git synced 2025-01-01 19:05:18 +08:00

6467 Commits

Author SHA1 Message Date
Jim Klimov
c6a6ec39a6 Jenkinsfile : regenerated with zproject support for better workspace cleanup before test preparation 2018-01-30 18:28:17 +01:00
Jim Klimov
4110c6b751 Jenkinsfile : regenerated with zproject support for configurable test timeout 2018-01-30 18:27:12 +01:00
Jim Klimov
59347f68b8 Jenkinsfile : regenerated with zproject support for cppcheck among other tests 2018-01-30 18:24:29 +01:00
Jim Klimov
70d3cc23be Jenkinsfile : regenerated with zproject support for DO_DIST_DOCS option 2018-01-30 18:21:49 +01:00
Luca Boccassi
da7d4d0760
Merge pull request #2901 from thedrow/patch-1
Enable ccache for faster builds
2018-01-27 10:37:41 +00:00
Omer Katz
befe62674c
Enable ccache for faster builds. 2018-01-27 11:01:35 +02:00
Luca Boccassi
c52ca3c284
Merge pull request #2897 from sigiesec/fix-2895
Problem: add_fd might be called with fd_ == retired_fd
2018-01-26 10:08:50 +00:00
Simon Giesecke
7488be61c2 Problem: add_fd might be called with fd_ == retired_fd
Solution: add assertion
2018-01-25 16:03:43 +01:00
Luca Boccassi
4518e0cc35
Merge pull request #2889 from SalvoVirga/fix/libzmq-static-cmake
Correct linking for libzmq-static
2018-01-15 10:29:30 +00:00
Salvo Virga
9d6a5f3c2f linkage is now homogeneous for both targets libzmq and libzmq-static
all calls to target_link_libraries are now at the same location
2018-01-15 00:36:02 +01:00
Constantin Rack
2540e1a609
Merge pull request #2888 from minrk/fix-cmake
Fix inclusion of cmake files in dists
2018-01-14 05:42:19 +01:00
Min RK
35c4b68a09 fix inclusion of cmake modules in dist 2018-01-13 13:15:51 -08:00
Min RK
5f8488de6d move FindSodium to builds/cmake/Modules
with the rest of the CMake modules
2018-01-13 13:15:51 -08:00
Min RK
f8da0ac721 move cmake ZeroMQConfig.cmake.in to builds/cmake 2018-01-13 13:14:53 -08:00
Luca Boccassi
e2ed5a357e
Merge pull request #2886 from SylvainCorlay/cmake-soversion
[cmake] fix SOVERSION
2018-01-13 10:11:56 +00:00
Sylvain Corlay
8d35cf82f1 [cmake] fix SOVERSION 2018-01-13 09:31:04 +01:00
Luca Boccassi
21927a74d9
Merge pull request #2885 from JohanMabille/librt_fix
removing hard-coded path of librt
2018-01-10 23:08:15 +00:00
Johan Mabille
b2a8bbd89b removing hard-coded path of librt 2018-01-10 21:07:25 +01:00
Giuseppe Corbelli
020b0bede8 Fix CMake tests on Windows (#2872)
* Changed CMake tests to use check_symbol_exists in network-related libraries on win32 instead of check_library_exists
2018-01-09 17:15:24 +00:00
Luca Boccassi
cea60575f3
Merge pull request #2879 from WallStProg/dup-connect
prevent duplicate connections from PUB sockets also
2017-12-29 23:03:39 +01:00
Bill Torpey
ec05166545 prevent duplicate connections from PUB sockets also (see https://github.com/zeromq/libzmq/issues/788) 2017-12-29 14:36:59 -05:00
Luca Boccassi
4621e5885e
Merge pull request #2878 from evoskuil/master
Problem: NuGet package versioning out of sync with releases.
2017-12-28 10:37:39 +01:00
evoskuil
2859cdea0b Problem: generated NuGet files out of date. 2017-12-27 17:31:02 -08:00
evoskuil
2b91051cda Problem: NuGet package versioning out of sync with releases. 2017-12-27 16:48:04 -08:00
Luca Boccassi
4e20c4592a
Merge pull request #2870 from evoskuil/master
Problem: vc++ 11.0 (vs 2012) compile fails on move semantics.
2017-12-15 10:09:12 +00:00
evoskuil
f41b51ee04 Problem: NuGet packaging versions out of date. 2017-12-14 17:24:38 -08:00
evoskuil
7133eafae1 Problem: shared NuGet packaging descr. is compiler-specific. 2017-12-14 14:58:02 -08:00
evoskuil
9622984241 Problem: vc++ 11.0 (vs 2012) compile fails on move semantics. 2017-12-14 14:58:02 -08:00
BJovke
9f7a6aac23
Merge pull request #2869 from evoskuil/master
Problem: fn pointers are not bool (vc++ warning C4550).
2017-12-14 23:07:20 +01:00
evoskuil
8d78e08f71 Problem: fn pointers are not bool (vc++ warning C4550). 2017-12-14 12:47:38 -08:00
Luca Boccassi
87fbe5a542
Merge pull request #2868 from jasperla/openbsd/ucred
Problem: Build is broken on OpenBSD
2017-12-14 09:08:15 +00:00
Jasper Lievisse Adriaanse
22b57f6f28 Problem: Build is broken on OpenBSD
Solution: re-instate block for OpenBSD erroneously removed in 9622a830
2017-12-14 09:47:49 +01:00
Constantin Rack
15828e4804
Merge pull request #2866 from bluca/new_ver
Problem: 4.2.3 is out, version(s) are out of date
2017-12-14 07:32:32 +01:00
Luca Boccassi
28a65cad50
Merge pull request #2867 from gouarin/fix-missing-file
add ZeroMQConfig.cmake.in in EXTRA_DIST
2017-12-13 19:51:01 +00:00
gouarin
084568bdf9 add ZeroMQConfig.cmake.in in EXTRA_DIST 2017-12-13 20:15:38 +01:00
Luca Boccassi
65a1e458ab Problem: 4.2.3 is out, version(s) are out of date
Solution: bump changelog, ABI revision, library and packaging version
2017-12-13 14:12:15 +00:00
Luca Boccassi
3226b8ebdd Finalise changelog for 4.2.3 v4.2.3 2017-12-13 13:25:26 +00:00
Luca Boccassi
fa85072fc3 Problem: no NEWS item for #2861
Solution: add it
2017-12-13 13:25:26 +00:00
Luca Boccassi
66fe4296ff
Merge pull request #2865 from jimklimov/jenkins-agent
Problem: nuget packaging refers to imatix gsl
2017-12-13 13:22:48 +00:00
Jim Klimov
e4fee1d3e0 Problem: nuget packaging refers to imatix gsl
Solution: re-point to the maintained zeromq fork

Signed-off-by: Jim Klimov <EvgenyKlimov@eaton.com>
2017-12-13 14:20:27 +01:00
Luca Boccassi
028d02a038
Merge pull request #2864 from jimklimov/jenkins-agent
Problem: Jenkinsfile uses "any" agent
2017-12-13 13:17:15 +00:00
Jim Klimov
3af762441a Problem: Jenkinsfile uses "any" agent
Solution: avoid using infrastructure and default agents by requiring a reasonable label (like in GSL and zproject)

Signed-off-by: Jim Klimov <EvgenyKlimov@eaton.com>
2017-12-12 16:08:37 +01:00
Luca Boccassi
e2dbc99c4c
Merge pull request #2861 from glaure/master
export ZMQ_STATIC compile flag to depending projects (MSVC)
2017-12-12 10:57:08 +00:00
Gunther Laure
5189898479 export ZMQ_STATIC compile flag to depending projects (MSVC)
Signed-off-by: Gunther Laure <glaure@dewetron.com>
2017-12-12 10:25:19 +01:00
Constantin Rack
9bb863618c
Merge pull request #2860 from bluca/cmake_win_static
Problem: static build broken on Win + CMake
2017-12-11 07:49:42 +01:00
Luca Boccassi
53e536a983 Problem: static build broken on Win + CMake
Solution: revert the objects optimisation, and go back to building
everything twice on Windows, as the static builds needs different
preprocessor definitions from the shared one, so the objects have to be
rebuilt.
Keep the optimisation for all the other platforms.
Fixes #2858
2017-12-10 17:42:42 +00:00
Luca Boccassi
1dd42fef83
Merge pull request #2857 from jimklimov/jfdc
Problem: Jenkinsfile does not pass distcheck etc.
2017-12-07 09:20:09 +00:00
Jim Klimov
822c6341dd Problem: Jenkinsfile does not pass DISTCHECK_CONFIGURE_FLAGS and LD_LIBRARY_PATH into make 2017-12-07 08:30:16 +01:00
Jim Klimov
c6356b9c5a Problem: Jenkinsfile tests libzmq for memcheck - there is not spoon 2017-12-07 07:11:01 +01:00
Jim Klimov
e7440779a4 Problem: Jenkinsfile timeouts expire 2017-12-07 03:28:14 +01:00
Jim Klimov
e201985ad3 Problem: Jenkinsfile does not use DISTCHECK_CONFIGURE_FLAGS 2017-12-07 02:43:26 +01:00
Luca Boccassi
737ea1f60d
Merge pull request #2856 from scpeters/patch-1
Problem: WIN32 CMAKECONFIG_INSTALL_DIR is broken
2017-12-06 22:34:13 +00:00
Steven Peters
de5e7a3983 Problem: WIN32 CMAKECONFIG_INSTALL_DIR is broken
Solution: set it to CMake instead of a subfolder of share.
See cmake find_package documentation for further info.
2017-12-06 12:45:48 -08:00
Constantin Rack
d15795b4e3
Merge pull request #2852 from bluca/pkg_include_cppzmq
Problem: Debian packages are missing zmq.hpp
2017-12-02 09:44:59 +01:00
Luca Boccassi
dee655959c
Merge pull request #2853 from jimklimov/jf
Problem: No Jenkinsfile
2017-12-01 09:21:13 +00:00
Luca Boccassi
83c042ccda Problem: Debian packages are missing zmq.hpp
Solution: install it if available. Download it from its repo as part
of the OBS source run.
Debian and Ubuntu always ship zmq.hpp in libzmq-dev, so do the same.
In the RPM world it is in its own separate package, so don't do the
same for RPM.
2017-12-01 01:09:28 +00:00
Jim Klimov
f90dbe08bb Introduce Jenkinsfile 2017-12-01 02:02:23 +01:00
Constantin Rack
fcacb603d6
Merge pull request #2851 from bluca/zpoller_wait_news
Problem: DRAFT API change not in NEWS
2017-11-26 14:32:45 +01:00
Luca Boccassi
156633feaa Problem: DRAFT API change not in NEWS
Solution: add it
2017-11-26 11:53:16 +00:00
Jim Klimov
d8aa8fc794
Merge pull request #2846 from bluca/appveyor_vs2013
Problem: no coverage for VS2013 and VS2017
2017-11-24 11:14:00 +01:00
Constantin Rack
a88abaa579
Merge pull request #2848 from bluca/linger_news
Problem: ZMQ_LINGER doc change not in NEWS
2017-11-24 08:00:59 +01:00
Luca Boccassi
e3cbdf4b93 Problem: ZMQ_LINGER doc change not in NEWS
Solution: add it
2017-11-23 17:27:09 +00:00
Luca Boccassi
90ea11c999
Merge pull request #2847 from fnaime/default_linger
Wrong ZMQ_LINGER default value
2017-11-23 17:24:37 +00:00
fnaime
da9bc91053
Wrong ZMQ_LINGER default value
Problem: Wrong linger default value

Solution: correct documentation
2017-11-23 14:15:09 -02:00
Luca Boccassi
96252e4aac Problem: Appveyor builds Libsodium when disabled
Solution: use if statements to avoid building it when it's disabled
2017-11-22 18:59:29 +00:00
Luca Boccassi
16d7686b48 Problem: no VS2013/17 CI jobs
Solution: add them to Appveyor
2017-11-22 18:41:12 +00:00
Jim Klimov
9f83a5988d
Merge pull request #2844 from bluca/cmake_double_build
Problems: CMake rebuilds everything twice, warnings with Tweetnacl, no autoconf option to disable Werror
2017-11-20 20:32:10 +01:00
Luca Boccassi
574d72b0e2 Problem: Travis builds with brew fail
Solution: add workaround until Travis really fixes the issue:
https://github.com/travis-ci/travis-ci/issues/8552
2017-11-20 15:55:35 +00:00
Luca Boccassi
08289d8f33 Problem: cannot disable Werror with autoconf
Solution: add --disable-Werror flag like the existing
--disable-pedantic or CMake's -DLIBZMQ_WERROR=OFF
Fixes #2818
2017-11-20 15:55:35 +00:00
Luca Boccassi
0298d037d0 Problem: CMake rebuilds everything twice
Solution: build all the objects separately before the link step, to
avoid rebuilding when doing both static and shared builds
2017-11-20 15:55:35 +00:00
Luca Boccassi
5264d49eab Problem: duplicate definition in CMake tweetnacl builds
Solution: don't redefine preprocessor macro if it's already defined in
platform.hpp
2017-11-19 12:47:05 +00:00
Constantin Rack
b3bf51716e
Merge pull request #2842 from bluca/accept4
Problem: accept4 not available on all platforms
2017-11-18 13:00:13 +01:00
Luca Boccassi
ac552ba448 Problem: accept4 not available on all platforms
Solution: check for availability in CMake and autoconf before using it
2017-11-18 11:33:53 +00:00
Constantin Rack
0d0d72e836
Merge pull request #2841 from bluca/news
Problems: no NEWS for 4.2.3, missing some events docs, whitespace in header
2017-11-18 10:00:54 +01:00
Luca Boccassi
5a8fd337fd Problem: NEWS not up to date
Solution: add main features and bug fixes
2017-11-17 18:15:25 +00:00
Luca Boccassi
e523adf3da Problem: new monitor events missing from docs
Solution: add them
2017-11-16 22:00:14 +00:00
Luca Boccassi
7a7c776abb Problem: trailing whitespace in include/zmq.h
Solution: remove it
2017-11-16 21:54:15 +00:00
Luca Boccassi
d49b0fad6d
Merge pull request #2840 from ccpaging/master
Problem: Build fails in Visual Studio 2008 without `stdint.h`
2017-11-16 11:48:30 +00:00
Simon Giesecke
700d7cd142
Merge pull request #2839 from bluca/linger_test
Problems: test_security_{zap|curve} often hangs, debian builds ignore test failures hiding issues
2017-11-16 10:07:14 +01:00
ccpaging
e8ad51e62f Clean code for Visual Studio 2008 compiler 2017-11-16 14:09:13 +08:00
Luca Boccassi
741e5c3db4 Problem: debian builds ignore test failures hiding issues
Solution: make test failures fail the build
2017-11-16 00:47:24 +00:00
Luca Boccassi
de8f14adf5 Problem: test_security_{zap|curve} often hangs
Solution: set 0 linger on the sockets immediately after creating them
rather than immediately before closing them.
Running through helgrind/drd highlights a few race conditions, one of
which is the setting of linger vs checking it when closing the socket.
Work around it by setting it immediately to fix the test hangs.
2017-11-16 00:44:29 +00:00
Jim Klimov
d2b6985028
Merge pull request #2833 from bluca/stream_test_parallel
Problem: test_stream_exceeds_buffer cannot be ran in parallel
2017-11-13 13:23:50 +01:00
Luca Boccassi
cffc1c4d2d
Merge pull request #2832 from ebyrob/fix-doc-zmq_msg_init-zmq_recv
Change zmq_recv to zmg_msg_recv since zmq_msg_t used there.
2017-11-10 16:02:15 +00:00
ebyrob
d7926d6d5a
Change zmq_recv to zmg_msg_recv since zmq_msg_t is only used with the zmg_msg_recv style functions. 2017-11-10 09:06:16 -05:00
Luca Boccassi
498c6bbb67 Problem: test_stream_exceeds_buffer cannot be ran in parallel
Solution: bind to wildcard and let the OS pick a free port instead
of using an hard-coded 12345 TCP port
2017-11-10 09:49:54 +00:00
Luca Boccassi
e10b350630
Merge pull request #2827 from korli/haiku
add Haiku support
2017-11-09 11:56:17 +00:00
Jerome Duval
23f89f4671 add Haiku support
* link against libnetwork.so for network functions.
2017-11-09 12:22:25 +01:00
Luca Boccassi
aafdeb7687
Merge pull request #2825 from rolftimmermans/req_relaxed_has_out
Problem: REQ socket with ZMQ_REQ_RELAXED does not report ZMQ_POLLOUT when queried for events after first message.
2017-11-08 10:18:27 +00:00
Rolf Timmermans
c8592dfbc3 Problem: REQ socket with ZMQ_REQ_RELAXED does not report ZMQ_POLLOUT when queried for events after first message.
Solution: Check for strictness before returning false if no reply has been received.
2017-11-08 09:55:14 +01:00
Simon Giesecke
b3d19ffe1a
Merge pull request #2813 from AntonBarwald/master
Problem: Sometimes on OSX we get ETIMEDOUT instead of EAGAIN
2017-11-02 17:35:00 +01:00
Anton Bärwald
630f6d6ae7 Problem: On OSX usleep() changes the errno value
Solution: Update errno value after calling usleep()
2017-11-02 16:01:11 +01:00
Luca Boccassi
812e756264 Merge pull request #2809 from sigiesec/optimize-select-win
Optimize select on Windows; reduce code duplication in select_t
2017-10-26 14:08:38 +01:00
sigiesec
f9d7eea6f9 Problem: code duplication
Solution: unified Windows & non-Windows code further
2017-10-26 11:05:39 +02:00
sigiesec
e7817ad38d Problem: code duplication
Solution: reduced code duplication by introducing local variables and
new function trigger_events
2017-10-26 10:47:05 +02:00
sigiesec
37914d1be2 Problem: get_fd_family call is expensive and called frequently for the
same fds

Solution: cache results of get_fd_family
2017-10-26 09:46:11 +02:00
Luca Boccassi
2b75a9ef18 Merge pull request #2806 from sigiesec/initialize-wsaevents-only-when-used
Problem: wsa_events are initialized/destroyed within every loop
2017-10-25 17:58:35 +01:00
sigiesec
cd32603c0e Problem: wsa_events are initialized/destroyed within every loop
iteration even if not used

Solution: Move wsa_events closer to usage
2017-10-25 18:30:03 +02:00
Luca Boccassi
dec3af4d69 Merge pull request #2803 from f18m/master
Change ZMQ_THREAD_AFFINITY to ZMQ_THREAD_AFFINITY_CPU_ADD/REMOVE
2017-10-25 09:35:49 +01:00
f18m
2aa0e6fd4d Change ZMQ_THREAD_AFFINITY to ZMQ_THREAD_AFFINITY_CPU_ADD/ZMQ_THREAD_AFFINITY_CPU_REMOVE. Avoid prefix thread names when no prefix was set. 2017-10-25 09:55:47 +02:00