Pieter Hintjens
bf3702395c
Fixed wildcard IPC endpoint and added test case
2013-12-20 14:28:54 +01:00
Pieter Hintjens
62f3fdf3b7
Fixed indentation
2013-12-20 14:17:35 +01:00
Pieter Hintjens
8ba1311e34
Fixed use of deprecated tempnam
2013-12-19 21:06:32 +01:00
Trevor Bernard
10a6641ef2
Fix issue #788 - Only allow a single connect per endpoint for SUB, REQ, and DEALER sockets
2013-12-14 23:40:34 -04:00
KIU Shueng Chuan
7f22995e35
use mutex implementation if fixed signaler_port!=5905
2013-12-12 00:39:01 +08:00
Brandon Carpenter
a018ef5e86
Add support for extending ZAP request address with IPC peer credentials.
...
Another take on LIBZMQ-568 to allow filtering IPC connections, this time
using ZAP. This change is backward compatible. If the
ZMQ_ZAP_IPC_CREDS option is set, the user, group, and process IDs of the
peer process are appended to the address (separated by colons) of a ZAP
request; otherwise, nothing changes. See LIBZMQ-568 and zmq_setsockopt
documentation for more information.
2013-12-06 14:28:44 -08:00
Brandon Carpenter
dc9b1309b9
Shortened ZMQ_IPC_ACCEPT_FILTER_[UGP]ID to ZMQ_IPC_FILTER_[UGP]ID.
2013-12-06 09:58:10 -08:00
Brandon Carpenter
af808203d7
Fix failing test case in test_filter_ipc.
...
Add explicit check for primary group.
2013-12-06 00:46:14 -08:00
Pieter Hintjens
f5b6bd70f3
Merge pull request #775 from pijyoi/master
...
use enum retired_fd instead of -1
2013-12-05 03:25:12 -08:00
KIU Shueng Chuan
fd8d6d471f
use enum retired_fd instead of -1
...
using -1 causes a warning on Windows platform because SOCKET is unsigned.
2013-12-05 07:04:21 +08:00
Brandon Carpenter
2252322acc
Add IPC accept filter socket options.
...
Adds ZMQ_IPC_ACCEPT_FILTER_{PID,UID,GID} socket options to add processs,
user, and group IDs to the IPC filter sets. Fixes LIBZMQ-568.
2013-12-04 14:23:13 -08:00
Brandon Carpenter
8662f44efa
Intial IPC accept filter support.
...
Adds sets of process (Linux only), user, and group IDs for filtering
connections from peer processes over IPC transport. If all of the
filter sets are empty, every connection is accepted. Otherwise,
credentials for a connecting process are checked against the filter sets
and the connection is only accepted if a match is found.
This commit is part of LIBZMQ-568 and only adds the filter sets and
implements the filter in the IPC accept method. The interface for
adding IDs to filter sets are included in a separate commit.
IPC accept filtering is supported only on Linux and OS X.
2013-12-04 14:12:29 -08:00
Martin Hurton
973d13d545
Code cleanup
2013-12-03 15:59:34 +01:00
Brian Knox
ff292d62d0
changing zmq_proxy_steerable to not use null terminated strings
2013-12-01 20:29:03 +00:00
Martin Hurton
cf14c54102
Fix issue #763
2013-11-30 21:25:18 +01:00
KIU Shueng Chuan
bd41087ab9
make win32 signaler support ephemeral ports
2013-11-28 18:25:28 +08:00
Richard Newton
abbe704d9e
Fix windows build for type of service.
2013-11-25 09:25:23 +00:00
Chris Laws
38bceca9ca
Add ability to set and get DSCP socket option
2013-11-25 13:31:21 +10:30
KIU Shueng Chuan
7bd0b6ada1
remove all asserts during critical section
...
the size of the critical section is reduced by only entering the critical
section right before the bind().
2013-11-12 01:12:24 +08:00
KIU Shueng Chuan
cf8ba925b4
return error to caller on bind error
2013-11-12 00:07:06 +08:00
Ian Barber
51fa803d63
Merge pull request #751 from psl-felipefarinon/master
...
Removing C++11 code.
2013-11-11 05:51:12 -08:00
psl-felipefarinon
31cf53f025
issue #583 removing C++11 code.
2013-11-11 10:20:28 -02:00
Bruno D. Rodrigues
750426037d
Fix socket creation above sistem limits for all 'other' OS not covered by eventfd, windows or vms; enhanced test to create sockets up to a bigger limit to really test hitting the OS limit
2013-11-10 10:19:19 +00:00
Martin Hurton
05d5962872
Signal that the peer performed orderly shutdown
2013-11-07 21:40:26 +01:00
Richard Newton
7a510b4b60
Fix formatting.
2013-11-07 17:50:29 +00:00
Richard Newton
90425cd5d6
Merge branch 'master' of https://github.com/zeromq/libzmq
2013-11-07 17:47:44 +00:00
Richard Newton
89ecf2de79
Merge pull request #744 from psl-felipefarinon/master
...
Fixing broken build issue #583
2013-11-07 09:47:29 -08:00
Richard Newton
568cc1adaa
Get maximum number of sockets it can handle from poller_t
2013-11-07 17:46:19 +00:00
psl-felipefarinon
485db41a43
Fixing broken build issue #583
2013-11-07 15:21:42 -02:00
Richard Newton
998c10a1b7
Merge pull request #741 from hintjens/master
...
Simplified error handling for make_fdpair on Windows
2013-11-07 08:48:48 -08:00
Pieter Hintjens
de5a787868
Merge pull request #742 from psl-felipefarinon/master
...
Fixing issue #583 . Using low resolution timer for clock::now_ms
2013-11-07 08:12:48 -08:00
psl-felipefarinon
b8a9f299fb
Fixing issue #583 . Using low resolution timer for clock::now_ms
2013-11-07 14:06:54 -02:00
Pieter Hintjens
51f8571933
Simplified fdpair reset after fork
2013-11-07 15:30:25 +01:00
Pieter Hintjens
2be70dca1a
Simplified error handling for make_fdpair on Windows
2013-11-07 15:26:56 +01:00
Pieter Hintjens
c573f6b812
Fix for issue 574
2013-11-07 14:59:53 +01:00
Richard Newton
844689ed9a
Fix race condition on shutdown
2013-11-06 15:19:04 +00:00
Erik Hugne
edbfae3141
zmq: change TIPC default lookup domain when connecting
...
By default, TIPC uses a closest first approach to find
a publication that can satisfy your connection request.
Any publication on the local node will automatically
be chosen for all requests, even if you're trying to
spread it out over multiple machines.
We fix this by widening the default lookup scope.
Signed-off-by: Erik Hugne <erik.hugne@ericsson.com>
2013-11-05 13:28:07 +01:00
Pieter Hintjens
5e6aa58a14
Fixed issue 578 - corrected type usage
2013-11-04 16:04:13 +01:00
Pieter Hintjens
d7c8021afc
Fixed issue 578
2013-11-04 15:39:20 +01:00
Pieter Hintjens
027990a112
Merge pull request #732 from Hugne/tipc
...
zmq: narrow condition to include TIPC in build/test
2013-11-01 07:14:00 -07:00
Erik Hugne
58ac87def1
zmq: narrow condition to include TIPC in build/test
...
As TIPC transport for 0MQ will only work on post 3.8
Linux kernels where nonblocking connect was added,
we add AC_RUN test to check for this functionality.
Should the test fail, tipc is excluded from build/test.
Signed-off-by: Erik Hugne <erik.hugne@ericsson.com>
2013-11-01 14:59:31 +01:00
Pieter Hintjens
299068b571
Merge pull request #731 from mbarbisan/master
...
Shorten ZMQ_ROUTER_REASSIGN_IDENTITIES to ZMQ_ROUTER_HANDOVER. Also, add...
2013-11-01 06:30:27 -07:00
Erik Hugne
632677e805
ricnewton review comment
...
Signed-off-by: Erik Hugne <erik.hugne@ericsson.com>
2013-11-01 11:17:10 +01:00
Erik Hugne
eab85b5295
zmq: add support for TIPC transport
...
A ZeroMQ application can opt for TIPC based sockets
using the TIPC port name format:
zmq_bind(sb, "tipc://{type,lower,upper}");
zmq_connect(sc, "tipc://{type,inst}");
'type' is the service ID, and 'lower/upper' can be
used for service partitioning or basic load
balancing.
ZeroMQ TIPC transport requires a kernel >= 3.8
(nonblocking connect support for TIPC).
Signed-off-by: Erik Hugne <erik.hugne@ericsson.com>
2013-11-01 10:09:22 +01:00
Mark Barbisan
5e71475d45
Shorten ZMQ_ROUTER_REASSIGN_IDENTITIES to ZMQ_ROUTER_HANDOVER. Also, added a test for the HANDOVER functionality.
2013-11-01 00:03:00 -04:00
Pieter Hintjens
bc88b88804
Merge pull request #729 from mbarbisan/master
...
Fixed LIBZMQ-556: ROUTER socket does not support reconnection from clients with multiple NICs
2013-10-31 11:01:55 -07:00
Mark Barbisan
3825f3b300
Add support to the ROUTER socket to reassign identities upon name collision.
2013-10-30 23:45:46 -04:00
NetImperia
c75ed69af3
Update tcp_connecter.cpp
...
Crash Fix: Assertion failed: Permission denied (..\..\..\src\tcp_connecter.cpp:279) on windows 8
2013-10-30 18:16:06 -07:00
Pieter Hintjens
eaba5dfe37
Renamed test_router_raw_empty to test_stream_empty
...
* The ZMQ_ROUTER_RAW API was deprecated in favor of ZMQ_STREAM
* Same issue hit router.cpp, which I've fixed
2013-10-28 21:00:42 +01:00
MinRK
96ee8bb9d9
add missing msg->init for ROUTER_RAW with empty message
2013-10-27 22:50:04 -07:00