hitstergtd
545e8e848e
Problem: sockfd_ parameter throws unused warning
...
Solution:
Mark it with LIBZMQ_UNUSED as per our convention.
2016-05-10 18:12:44 +01:00
Doron Somech
c41d514b8b
Revert "problem:Socket try to access closed mutex"
2016-05-10 16:23:29 +03:00
Doron Somech
77d3d7b4dc
problem:Socket try to access closed mutex
2016-05-10 13:49:57 +03:00
hitstergtd
124ebd2dd6
Problem: UDP engine code not indented properly
...
Solution:
Indent it.
2016-05-08 18:30:17 +01:00
KIU Shueng Chuan
bb4bcf8f45
fix: sockets are not signed int on Windows
2016-05-08 16:29:15 +08:00
Luca Boccassi
8045e9ae24
Problem: no backtrace is printed on assert
...
Solution: add an optional dependency on libunwind, and if present
use it to print the backtrace when zmq_abort is called.
2016-05-06 21:34:25 +01:00
Luca Boccassi
17132f0387
Problem: read-after-free when closing socket
...
Solution: use socket object's mutex before the send_reap() call that
might deallocate it
2016-05-05 17:47:16 +01:00
Constantin Rack
5dadded0a1
Merge pull request #1961 from somdoron/Signaler
...
problem: closed poller still associated with socket
2016-05-05 12:57:24 +02:00
Doron Somech
a747f72450
problem:closed poller still associated with socket
2016-05-05 13:50:33 +03:00
hitstergtd
109122dd46
Problem: style issues with comment in zmq_poll
...
Solution:
Wrap and clean it.
2016-05-04 16:24:51 +01:00
Doron Somech
e15da4b38c
problem: compilation error on osx
2016-05-04 16:09:31 +03:00
Doron Somech
4012538ce4
problem: srcfd is broken
2016-05-04 15:33:19 +03:00
somdoron
fca45921a8
problem: zeromq performance got worsen by some changes
2016-05-03 19:37:39 +03:00
Doron Somech
b3667cccf9
mark zmq_msg new methods as draft
2016-05-03 10:44:00 +03:00
Luca Boccassi
6de24c190a
Problem: scatter/gather are not yet stable APIs
...
Solution: mark them as DRAFT APIs
2016-05-02 21:47:05 +01:00
Luca Boccassi
caaf66c32c
Problem: radio/dish are not yet stable APIs
...
Solution: mark them as DRAFT APIs
2016-05-02 21:47:05 +01:00
Luca Boccassi
32a1ef85a8
Problem: zmq_timers* are not yet stable APIs
...
Solution: mark them as DRAFT APIs
2016-05-02 21:47:05 +01:00
Luca Boccassi
738968082b
Problem: zmq_poller* are not yet stable APIs
...
Solution: mark them as DRAFT APIs
2016-05-02 21:47:05 +01:00
Luca Boccassi
7e700f1e73
Problem: client/server are not yet stable APIs
...
Solution: mark them as DRAFT APIs
2016-05-02 21:47:05 +01:00
Luca Boccassi
064cd1fbfb
Problem: no support for DRAFT API in build systems
...
Solution: add support for --enable-drafts/ENABLE_DRAFTS=ON in
Autools and CMake.
2016-05-02 21:47:05 +01:00
Luca Boccassi
b469832409
Problem: precompiled.hpp ifdef'd for windows
...
Solution: include platform.hpp and include/zmq.h outside of ifdef
for windows, in order to be able to use it for internal definitions.
2016-05-02 20:00:53 +01:00
Luca Boccassi
b65fc903cd
Merge pull request #1943 from hitstergtd/x-style-tunetcpkeepalives-fix
...
Problem: tune_tcp* related code has style issues
2016-05-02 17:25:48 +01:00
Luca Boccassi
b3ae7cfa0d
Merge pull request #1937 from hitstergtd/test-add-sendiov
...
Problem: multiple issues with zmq_sendiov/recviov
2016-05-01 20:01:07 +01:00
hitstergtd
e4539778a4
Problem: multiple issues with sendiov/recviov
...
Solution:
- Add check for the [count] parameter in zmq_sendiov() and zmq_recviov()
- Use and add test for zmq_sendiov() in tests/test_iov.cpp
- Add error state tests for zmq_sendiov() in tests/test_iov.cpp
- Add error state tests for zmq_recviov() in tests/test_iov.cpp
- Cleanup tests/test_iov.cpp for style, consistency and clarity
- Generally improve test coverage for both API methods
Hat-tip:
@somdoron, @bluca
2016-05-01 19:41:50 +01:00
hitstergtd
a31c508979
Problem: tune_tcp* related code has style issues
...
Solution: fix it
2016-05-01 14:42:27 +01:00
hitstergtd
8820e35a56
Problem: style issues in decoder.hpp
...
Solution: fix it
2016-04-30 21:20:31 +01:00
Luca Boccassi
95acb29bfb
Merge pull request #1934 from somdoron/master
...
problem: no documentation for Radio-dish and UDP
2016-04-29 10:40:56 +01:00
somdoron
34d5028ea8
allow specify binding address on radio with udp
2016-04-29 12:17:17 +03:00
hitstergtd
9218441f97
Problem: unistd.h redundantly included twice
...
Solution: fix it
2016-04-26 16:57:30 +01:00
hitstergtd
d3c800a237
Problem: tune_tcp_keepalives signature >80 chars
...
Solution: fix it
2016-04-25 13:43:10 +01:00
hitstergtd
b2d0ab18f2
Problem: trailing whitespace in code
...
Solution: fix them
2016-04-25 12:18:46 +01:00
hitstergtd
11311f9776
Problem: trailing spaces in code comments
...
Solution: fix them
2016-04-25 11:18:49 +01:00
hitstergtd
a4b426b18e
Problem: typos/trailing spaces in code comments
...
Solution: fix them
2016-04-25 11:16:26 +01:00
hitstergtd
7feb1e49fc
Problem: Windows IPC check broken (check_protocol)
...
Solution: Fix the preprocessor check from || to &&
2016-04-22 19:55:08 +01:00
Hitster GTD
99763cce41
Merge pull request #1909 from somdoron/master
...
problem: push-pull socket types are not thread safe
2016-04-21 12:54:04 +01:00
somdoron
e6dae56c6e
Scatter-Gather socket types
2016-04-21 14:50:58 +03:00
Doron Somech
87e455f59b
Fix UDP failing on windows
2016-04-21 14:00:02 +03:00
Luca Boccassi
c8211bf320
Problem: can't unbind with bound addr with IPv6
...
Solution: try to resolve the TCP endpoint passed by the user in the
zmq_unbind call before giving up, if it doesn't match.
This fixes a breakage in the API, where after a call to
zmq_bind(s, "tcp://127.0.0.1:9999") with IPv6 enabled on s would
result in the call to zmq_unbind(s, "tcp://127.0.0.1:9999") failing.
Add more test cases to increase coverage on all combinations of TCP
endpoints.
2016-04-18 18:43:36 +01:00
hitstergtd
8cb27316fa
Problem: check_protocol() logic duplicated twice
...
Problem:
Conditional logic in check_protocol() that checks if a protocol is supported,
is duplicated twice. Moreover, the first set of checks to ascertain if a
protocol is supported is done regardless of whether the particular protocol
will be built into the library or not.
Solution:
* Simplify/collapse all supported protocol checks into one in check_protocol()
* Enclose pgm/epgm/norm socket+protocol match checks with requisite macros
2016-04-15 15:39:46 +01:00
hitstergtd
362377948e
Problem: errno not set if UDP is NOT used with ZMQ_RADIO or ZMQ_DISH
...
Solution: set errno to ENOCOMPATPROTO in check_protocol()
2016-04-15 01:23:34 +01:00
hitstergtd
a17389eeb0
Fix typos similar to #1894
2016-04-14 21:10:12 +01:00
hitstergtd
6c3129286d
Fix typo
2016-04-14 21:02:53 +01:00
Constantin Rack
3f77cf5a2f
Merge pull request #1892 from bluca/solaris_fixes
2016-04-13 05:18:12 +02:00
Patrik Wenger
ba9a559fe5
Problem: PR #1891 wasn't complete
...
Solution: make the same change for the ZMQ_POLL_BASED_ON_SELECT case
2016-04-13 03:01:14 +02:00
Patrik Wenger
1afed1d32e
Problem: tabs instead of spaces used for indentation
...
Solution: correct it to spaces
2016-04-13 03:01:14 +02:00
Luca Boccassi
edda1657fa
Problem: pragma diagnostic is new in GCC 4.2
...
Solution: check for GCC version before using pragma diagnostic
in src/tweetnacl.c to avoid an additional warning.
2016-04-13 00:31:58 +01:00
Patrik Wenger
621c965fae
Problem: tricky return value from zmq::socket_poller_t::wait when poller is empty
...
Solution: return -1 (no event) instead of 0 (event)
For some reason, this just returns 0 if there are no sockets registered
on the poller. Usually this would mean there has been an event. So the
caller would have to check the return value AND the event, or write code
that takes the number of registered sockets into consideration.
By returning -1 and setting errno = ETIMEDOUT like in the usual timeout
cases, it's more consistent and convenient.
Test case included.
2016-04-12 20:11:50 +02:00
Patrik Wenger
b5dc794202
Problem: zmq_poller_wait doesn't check *event arg
...
Solution: use zmq_assert to ensure it's not a nullpointer
2016-04-12 20:10:54 +02:00
Luca Boccassi
d570f57b6e
Problem: ipc://* random dir created with USE_FD
...
Solution: if options.use_fd do not create temporary random
directory for ipc://*, since the socket is already created and
passed to the library by the user.
2016-04-11 00:18:51 +01:00
Luca Boccassi
f18463f323
Problem: mkdtemp not available on all platforms
...
Solution: check for availability in autoconf and cmake, and if not
available fall back to random file name rather than random directory.
2016-04-11 00:18:51 +01:00