0
0
mirror of https://github.com/zeromq/libzmq.git synced 2024-12-27 07:31:03 +08:00

6103 Commits

Author SHA1 Message Date
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
Luca Boccassi
cb266ee073 Merge pull request #2619 from diorcety/winxp
Partial Windows XP support
2017-10-24 13:05:48 +01:00
Yann Diorcet
81327af557 Partial Windows XP support 2017-10-24 13:12:34 +02:00
Luca Boccassi
d459542176 Merge pull request #2800 from sigiesec/optimize-blob-t-router
Problem: one missed optimization opportunity for blob_t map lookup
2017-10-23 10:49:13 +01:00
Simon Giesecke
7ec58b279a Problem: one missed optimization opportunity for blob_t map lookup
Solution: create referencing blob_t
2017-10-23 11:12:15 +02:00
Luca Boccassi
54ca01ac0e Merge pull request #2799 from sigiesec/optimize-map-ops
Problem: use of std::map::insert is inefficient
2017-10-22 17:00:57 +01:00
Simon Giesecke
a4aceb272b Problem: use of std::map::insert is inefficient
Solution: use std::map::emplace instead, where available
2017-10-22 17:15:00 +02:00
Luca Boccassi
07eb52cbad Merge pull request #2797 from zeromq/fix-zmq-atomic-counter-value-docs
Problem: description of return value is cloned from zmq_atomic_counter_new
2017-10-21 16:23:20 +01:00
Simon Giesecke
439e49bca1 Problem: description of return value is cloned from zmq_atomic_counter_new
Solution: provide correct description

Fixes #2789
2017-10-21 17:21:00 +02:00
Simon Giesecke
0897b3e07b Problem: excessive memory allocations around blob_t (#2796)
* Problem: excessive memory allocations around blob_t

Solution: redefine blob_t as a custom type, and use reference/move
semantics where possible
2017-10-21 12:19:51 +01:00
Simon Giesecke
cfef04035c Clarify usage of zmq_close (#2792)
* Clarify usage of zmq_close
2017-10-18 15:27:00 +01:00
Luca Boccassi
2c247271a3 Merge pull request #2793 from sigiesec/timeout-comment
Problem: comment before sndtimeo/rcvtimeo does not specify dimension
2017-10-18 14:33:09 +01:00
sigiesec
cfb2129557 Problem: comment before sndtimeo/rcvtimeo does not specify dimension
Solution: add "milliseconds"
2017-10-18 15:04:54 +02:00
Doron Somech
835df92241 Merge pull request #2791 from bluca/centos6
Problems: DRAFT build broken in CentOS 6, missing bits in documentation
2017-10-17 18:56:52 +03:00
Luca Boccassi
cfe44284f7 Merge pull request #2790 from youRFate/master
added note concerning issue 2788 to INSTALL
2017-10-17 15:09:24 +01:00