Michael Lutz
7a6ff07a01
Problem: Windows performance is not optimal due to select().
...
Solution: Provide poll() for Windows as well. This is a build option that
defaults to off as the resulting binary will only run on Windows Vista or
newer.
This is not tested with alternative Winsock service providers like VMCI,
but the documentation for WSAPoll does not mention limitations.
On my local machine, throughput improves by ~10 % (20 simultaneous
remote_thr workes to one local_thr, 10 byte messages), while latency
improves by ~30 % (measured with remote/local_lat).
2016-06-11 19:17:18 +02:00
Michael Lutz
8d8d32f4d0
Problem: Theoretical overflow when polling more than INT_MAX handles.
...
Solution: Always use fd_t when accessing the pollset.
2016-06-11 18:50:40 +02:00
Luca Boccassi
0dede9b50b
Problem: std:vector.data breaks compat with C++98
...
Solution: use buffer address instead
2016-06-09 23:54:29 +01:00
Jose Luis Blanco-Claraco
38d7bec19e
Fix build error in MSVC11
...
(and probably other MSVC versions)
2016-06-10 00:42:43 +02:00
Yann Diorcet
9835e18f64
Fix compilation with mingw64 using autotools
2016-06-01 15:07:16 +02:00
Ilya Kulakov
73e360fc49
VMCI family does not support non-blocking sockets.
...
It may even cause BSOD on Windows.
2016-05-27 19:46:03 -04:00
Adam Seering
b1e2b87f0f
On systems where getifaddrs() exists but isn't implemented, behave as if 'resolve_nic_name()' were entirely unsupported
2016-05-27 00:02:37 -04:00
hitstergtd
40a2ed9e87
Problem: style broken in src/windows.hpp
...
Solution:
Wrap to lte 80 chars and fix it.
2016-05-20 15:37:09 +01:00
evoskuil
c050d95fcd
Problem: no unit tests for base85 or public curve functions.
2016-05-19 03:46:15 -07:00
evoskuil
460bc7525b
Problem: no function to derive curve public key from secret key.
2016-05-18 23:51:18 -07:00
evoskuil
6a99bb041d
Problem: implicit integer narrowing cast warnings.
2016-05-18 12:02:30 -07:00
Chris-P-Bacon
874c346c20
Typo in define for libsodium
...
Since ZMQ_USE_SODIUM is nowhere defined i guess it's meant to be ZMQ_USE_LIBSODIUM?
2016-05-18 14:52:30 +02:00
somdoron
bbfed6b8d0
problem: memory issues, access uninitiailized memory and leak
2016-05-16 15:51:08 +03:00
somdoron
c4d0146f2c
problem: udp doesn't enforce correct usage of bind/connect
...
solution: enforce that dish and gram can only bind and radio can only
connect
2016-05-16 13:34:38 +03:00
Doron Somech
0db70e247c
problem: compilation error on windows
2016-05-16 12:48:47 +03:00
somdoron
55f0a5503e
problem: dgram is not enforcing two-part message
2016-05-16 12:18:36 +03:00
somdoron
ded0e5a6d9
problem: udp_engine didn't work with dgram socket type
2016-05-16 12:18:36 +03:00
somdoron
eb80fa31ea
problem: dgram more out logic was incorrect
2016-05-16 12:07:07 +03:00
somdoron
47c0b6ec25
problem: dgram doesn't need to prefetch messages
2016-05-16 10:31:38 +03:00
somdoron
d791932635
problem: terminating conn doesn't make sense in disconnected protocol
2016-05-16 10:28:42 +03:00
Bitiquinho
8cd64b76e4
Adapt to new draft header. Rebase dgram socket on pair socket
2016-05-15 16:16:09 -03:00
Bitiquinho
977e700893
Fix Copyright range
2016-05-15 15:37:33 -03:00
Bitiquinho
cea473de59
Added ZMQ_DGRAM socket option to precmpiled.hpp
2016-05-15 15:37:33 -03:00
Bitiquinho
365c8eda72
Add dgram_t class (based on stream socket and udp engine)
2016-05-15 15:35:35 -03:00
Luca Boccassi
72f19648d1
Merge pull request #1992 from evoskuil/master
...
Problem: name confl from windows.h, draft API decl in pch.
2016-05-14 11:49:08 +01:00
Constantin Rack
bd66cfe6f8
Merge pull request #1991 from hitstergtd/x-testcov-zmq-2
...
Problem: zmq_poller_destroy can segfault
2016-05-14 08:17:41 +02:00
evoskuil
2b798e486a
Problem: name conflicts from windows.h, draft API declared in pch.
2016-05-13 20:41:26 -07:00
Luca Boccassi
94774f6915
Merge pull request #1988 from evoskuil/master
...
Problem: msvc builds are misconfigured.
2016-05-13 11:48:19 +01:00
evoskuil
9622a830d0
Problem: inapplicable, redundant and invalid references in msvc pch.
2016-05-13 01:40:14 -07:00
hitstergtd
477cc1cb12
Problem: zmq_poller_destroy parameter checking
...
Solution:
- Add checks for **poller_p_ to ensure that we do not segfault when either it
or the value within it are NULL
- Add tests for the above and increase error state coverage
2016-05-12 18:09:59 +01:00
Luca Boccassi
f8c93d508f
Merge pull request #1983 from hitstergtd/x-unused-thread
...
Problem: scheduling parameters unused on OSX
2016-05-12 16:53:22 +01:00
hitstergtd
e946b0d1a6
Problem: scheduling parameters unused on OSX
...
Solution:
Mark them with LIBZMQ_UNUSED macro as per convention; although in future the
appropriate pthread code should be updated to support thread scheduling
priorities (for Mac OS X, et. al.)
2016-05-12 16:36:59 +01:00
evoskuil
398a5fd454
Problem: vs2010/12 build breaks, exclude atomic & inttypes in msvc pch.
2016-05-12 03:14:30 -07:00
Hitster GTD
29c8e30fc0
Merge pull request #1982 from Hugne/bug_1968
...
tipc: add support for address domain suffix
2016-05-11 21:17:23 +01:00
Erik Hugne
f81ef1bc72
tipc: add support for address domain suffix
...
The TIPC protocol bindings in ZeroMQ defaults to a lookup domain
of 1.0.0 to prevent 'closest first' search, and instead always
do round robin if several sockets in the network or node have
the same name published. In retrospect, this might have been a
bad idea because it won't work on standalone configurations.
We solve this by allowing an optional domain suffix to be provided
in the address, and 0.0.0 should be used in that case, or if the
TIPC address range in the cluster configuration is defined to some
other value. Domain suffixes are only relevant for connecting
addresses.
Signed-off-by: Erik Hugne <erik.hugne@gmail.com>
2016-05-11 21:54:25 +02:00
Luca Boccassi
4ad68e0dfe
Merge pull request #1981 from hitstergtd/x-unused-req
...
Problem: hint parameter throws unused warning
2016-05-11 15:57:12 +01:00
hitstergtd
5efa11828c
Problem: hint parameter throws unused warning
...
Solution:
Mark it with LIBZMQ_UNUSED macro as per convention.
2016-05-10 18:22:15 +01:00
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