Pieter Hintjens
5bf96f64b0
Removed ZMQ_ZAP_IPC_CREDS option
...
- This seems redundant; is there a use case for NOT providing
the IPC credentials to the ZAP authenticator?
- More, why is IPC authentication done via libzmq instead of ZAP?
Is it because we're missing the transport type on the ZAP request?
2014-01-01 17:39:14 +01:00
Pieter Hintjens
311b6bf9f7
Test was sometimes failing
...
- was not waiting long enough at socket close
- increased to 50 msec
2013-12-20 14:34:29 +01:00
Pieter Hintjens
bf3702395c
Fixed wildcard IPC endpoint and added test case
2013-12-20 14:28:54 +01:00
MinRK
f4c5c9e890
add failing test for binding to resources
2013-12-18 16:37:37 -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
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
Brian Knox
ff292d62d0
changing zmq_proxy_steerable to not use null terminated strings
2013-12-01 20:29:03 +00:00
Chris Laws
a4385e6105
tidy up
2013-11-25 13:40:05 +10:30
Chris Laws
38bceca9ca
Add ability to set and get DSCP socket option
2013-11-25 13:31:21 +10:30
Shannen Saez
8f97f621a8
Move linger test to issue repo.
...
See https://github.com/zeromq/issues/pull/7
Signed-off-by: Shannen Saez <shannenlaptop@gmail.com>
2013-11-25 14:37:47 +11:00
Pieter Hintjens
4d22d456a9
Reverting path change on platform.hpp, this broke some builds
2013-11-19 17:11:15 +01:00
Pieter Hintjens
f98fbd5ad8
Fixed test_many_sockets
...
* failed on systems where process could not allocate 1024 sockets by default
* include path for platform.hpp was wrong; fixed it
2013-11-19 16:51:06 +01:00
Richard Newton
5f8067cd1b
Fix signed/unsigned comparison
2013-11-11 13:54:58 +00:00
Richard Newton
dee333b2ed
Fix signed/unsigned comparison
2013-11-11 13:53:25 +00:00
Richard Newton
7c51429440
Reduce default maximum number of sockets by 1 so there is room for the reaper socket.
2013-11-11 13:41:42 +00: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
Richard Newton
554b3c1f70
Add test case for many sockets
2013-11-07 16:47:55 +00:00
Pieter Hintjens
5b60540ed0
Removed over-long pauses in tests
...
- used msleep (10) in most places instead of zmq_sleep (1)
- may cause failures on slower machines
- to change, modify SETTLE_TIME in testutil.h
- tested down to 1 msec on fast boxes
2013-11-06 13:42:57 +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
9d5a379331
zmq: add TIPC transport tests
...
The tests are identical to the TCP ones, only the
addressing is changed.
Signed-off-by: Erik Hugne <erik.hugne@ericsson.com>
2013-11-01 10:10:02 +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
Richard Newton
5405c6ac21
Remove redundant entry in tests makefile.
2013-10-29 11:18:49 +00:00
Matt Connolly
36d7bba389
Adding source for test_stream_empty
2013-10-29 20:50:52 +10: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
Richard Newton
379c280bde
Fix test warning.
2013-10-28 08:34:32 +00:00
Richard Newton
15f5b7ff6a
Fix test warning.
2013-10-28 08:30:31 +00:00
MinRK
366c8f87c4
test zmq_msg_close after sending empty message on ROUTER_RAW
2013-10-27 22:50:32 -07:00
Pieter Hintjens
1ee7b9b1ea
test_stream failed when response was broken into frames
2013-10-23 23:58:39 +02:00
Laurent Alebarde
e33a382f8d
new zmq_proxy is zmq_proxy_steerable to respect C API
2013-10-18 15:01:05 +02:00
Laurent Alebarde
1b75d1ecb5
add proxy control flow and test
2013-10-18 11:12:48 +02:00
Brandon Carpenter
f499c89528
Add test for abstract namespace support in ipc sockets on Linux.
...
See issue 567.
2013-10-04 11:33:52 -07:00
KIU Shueng Chuan
55bfe7dbab
WinSock2.h filename should be all lowercase
2013-10-05 00:51:47 +08:00
KIU Shueng Chuan
79c2598a08
test for _MSC_VER before using MSVC specific code
2013-10-05 00:48:52 +08:00
Pieter Hintjens
edeedc6dd8
Disabled randomly failing part of test
2013-10-02 12:15:31 +02:00
Pieter Hintjens
fd4d125d8e
Packaging for zmq_curve_keypair function
...
* Added new man page for this
* Added test case, in tests/test_security_curve.cpp
* Noted in zmq_utils.h that these methods are documented
2013-09-30 15:14:02 +02:00
Pieter Hintjens
e42a0a4074
Added test case for issue 566
...
* Tests dealer-to-router connection 100 times
* This was failing in ZMQ v4.0.0 RC1
2013-09-26 14:18:40 +02:00
Pieter Hintjens
9d51155ce2
Build/test errors on OS/X with clang++
2013-09-26 11:33:44 +02:00
Pieter Hintjens
f36a49de6d
Move away from port 8080 which is occupied on some boxes
2013-09-20 23:16:29 +02:00
Pieter Hintjens
5e609be345
Renamed new socket options to be clearer
...
* ZMQ_REQ_STRICT was negative option (default 1) which goes against
the standard, where defaults are zero. I renamed this to
ZMQ_REQ_RELAXED.
* ZMQ_REQ_REQUEST_IDS felt clumsy and describes the technical solution
rather than the problem/requirement. I changed to ZMQ_REQ_CORRELATE
which seems more explicit.
2013-09-20 15:30:04 +02:00
Pieter Hintjens
92c01f69db
Renamed test_connect_delay to test_immediate
...
* The ZMQ_CONNECT_DELAY option was renamed to ZMQ_IMMEDIATE
2013-09-20 14:23:43 +02:00
Pieter Hintjens
e05556075f
Renamed inproc connect test (name was too long)
2013-09-19 09:36:43 +02:00
Richard Newton
de91c7362c
Merge pull request #668 from mrothe/no-public-tests
...
tests: don't listen on public ports
2013-09-18 04:09:51 -07:00
Markus Rothe
b13230510c
tests: don't listen on public ports
2013-09-18 12:58:19 +02:00
Pieter Hintjens
825052f83f
Revert "makes curve keys symetric as in libcurve + factorisation"
...
This reverts commit bfd472f97c
.
2013-09-17 14:05:55 +02:00
Pieter Hintjens
22eb4d600b
Revert "oblige the application to explicitely set the node type for PLAIN"
...
This reverts commit 1206f4572b
.
2013-09-17 14:05:41 +02:00
Laurent Alebarde
1206f4572b
oblige the application to explicitely set the node type for PLAIN
2013-09-17 12:47:21 +02:00