Jens Auer
798532e0c5
Merged PR 1649
...
https://github.com/zeromq/libzmq/pull/1649/commits
2016-10-13 08:34:04 +00:00
Luca Boccassi
d38a2d507d
Problem: zmq_ctx_term asserts with connect-before-bind and sockets with identity over inproc transport
...
Solution: check if the connecting inproc socket has been closed
before trying to send the identity.
Otherwise the pipe will be in waiting_for_delimiter state causing
writes to fail and the connect to assert when the context is being
torn down and the pending inproc connects are resolved.
Add test case that covers this behaviour.
2016-09-24 19:45:54 +01:00
Luca Boccassi
acab1f487b
Problem: zmq_connect with IPv6 "source:port;dest:port" format is broken
...
Solution: allow for '[' character when doing the basic sanity check
on the TCP endpoint.
Also add unit tests for both IPv4 and IPv6 source;dest format.
2016-09-17 20:04:21 +01:00
Luca Boccassi
8ddf198256
Problem: test_reqrep_tcp does not have IPv6 tests
...
Solution: add them
2016-09-17 20:04:21 +01:00
Luca Boccassi
67d60b1909
Problem: test_reqrep_tcp does not test multiple endpoints
...
Solution: add a test for this use case
2016-09-17 19:46:55 +01:00
Luca Boccassi
9c35093782
Problem: test_reqrep_tcp does not test disconnect/unbind
...
Solution: add disconnect and unbind calls to the test
2016-09-17 19:46:55 +01:00
Luca Boccassi
7bc7395a2a
Problem: test_reqrep_tcp is too limited
...
Solution: refactor it to allow for multiple functionalities to be
tested
2016-09-17 19:46:13 +01:00
Luca Boccassi
328fe09946
Problem: testutil.hpp fails to build on Windows XP
...
Solution: ifdef is_ipv6_available to always return false if building
on Windows XP, as it doesn't support the needed standard libc
functions
2016-08-27 17:15:09 +01:00
Thomas Braun
b86717dc9a
Tests: Fix compilation on Windows
...
Visual Studio 2015 does grok the preprocessor defintion.
Add an explicit call to defined as done in other places.
2016-08-22 21:26:26 +02:00
Thomas Braun
64dbf56d6e
testutil.hpp: Fix include path to windows.hpp
2016-08-22 20:57:01 +02:00
Luca Boccassi
0af39a443f
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-21 10:52:11 +01:00
Luca Boccassi
1586f3f25e
Problem: can't test if IPv6 is available in tests
...
Solution: add helper function is_ipv6_available to testutil.hpp to
test if IPv6 is available on the building platform.
This function will try to open and bind a socket to ::1:*, as it's
the ultimate way of knowing if, at least on the loopback, IPv6 is
enabled.
2016-04-21 10:52:11 +01:00
Pieter Hintjens
98834596f1
Problem: cannot disable encryption if libsodium is installed
...
The sodium/tweetnacl detection logic does not yet you disable
encryption if libsodium is installed.
Fixes #1850 in libzmq/master
2016-03-12 15:40:24 +01:00
Pieter Hintjens
58badc44c1
Problem: can't be sure crypto_box always returns 0
...
Libsodium has started returning -1 in some cases.
Solution: allow and handle error returns from these calls.
Fixes #1831
2016-03-01 17:01:00 +01:00
Michael
626abbdaf2
update for mingw's default _WIN32_WINNT
...
mingw defaults with _WIN32_WINNT as 0x0502 which doesn't define inet_pton(), so add a conditional check
2016-02-12 23:32:20 +11:00
Michael
d0b341cf0f
update for mingw's default _WIN32_WINNT
...
mingw defaults with _WIN32_WINNT as 0x0502 which doesn't define inet_pton(), so add a conditional check
2016-02-12 23:31:55 +11:00
Michael
41cc603d11
update for mingw's default _WIN32_WINNT
...
mingw defaults with _WIN32_WINNT as 0x0502 which doesn't define inet_pton(), so add a conditional check
2016-02-12 23:31:24 +11:00
Luca Boccassi
92f2b073be
Problem: CI may fail due to timeout. Fixes #58
...
Solution: cherry-pick Pieter Hintjens commit a7a512ab from libzmq
repository to increase test timeouts to 250 msec.
2015-08-02 19:23:22 +01:00
Rik van der Heijden
a9ca06847b
Fix issue #52 , reset all bits in getsockopt
2015-08-01 10:28:57 +02:00
Dylan Cali
6b8aae0b54
be pedantic and call zmq_close in tests
2015-06-28 22:32:55 -05:00
Dylan Cali
b0023f0ccf
fix errant comments
2015-06-28 21:28:49 -05:00
Dylan Cali
c8c36f5907
add tests for zeromq/libzmq#949
2015-06-28 20:53:04 -05:00
Constantin Rack
81464652d2
Solution: allow brackets in tcp address. Fixes #43
2015-06-23 08:29:36 +02:00
Min RK
9be539a1e1
test proxy with single REP socket
2015-06-07 11:09:08 -07:00
Pieter Hintjens
b0a69fc623
Problem: source file headers are somewhat confusing about LGPLv3
...
Of course people still "can" distributed the sources under the
LGPLv3. However we provide COPYING.LESSER with additional grants.
Solution: specify these grants in the header of each source file.
2015-06-02 22:47:01 +02:00
Rik van der Heijden
f5e1c607a5
Merged fix for #1382
2015-05-01 11:26:26 +02:00
Thomas Rodgers
73fa40b9ac
resolve #1347 addresses issue of no metadata on identity frame
2015-02-19 13:31:26 -06:00
Thomas Rodgers
2a3379af4d
Revert "resolve #1347 addresses issue of no metadata on identity frame"
...
This reverts commit f75ed8565e984f423e748717108486b458d5a724.
2015-02-19 13:27:18 -06:00
Thomas Rodgers
f75ed8565e
resolve #1347 addresses issue of no metadata on identity frame
2015-02-19 13:26:26 -06:00
Thomas Rodgers
d172875f52
Backport resolve #1357 Support limited metadata for STREAM sockets
2015-02-18 13:09:11 -06:00
Thomas Rodgers
48ed789c18
Revert "STREAM socket support for limited metadata"
...
This reverts commit 5afd4e16edb51a3996c8d4b9f698dea8d2917c43.
2015-02-18 12:36:21 -06:00
Thomas Rodgers
5afd4e16ed
STREAM socket support for limited metadata
...
WIP - STREAM socket support for limited metadata
STREAM socket support for limited metadata
2015-02-18 11:12:32 -06:00
Thomas Rodgers
5229eeef5b
resolve #1347 Backport zmq_msg_gets "Peer-Address"
2015-02-14 10:44:52 -06:00
Min RK
fffaf6fd42
craft vanilla socket security test messages
...
use explicit ZMTP/1.0 anonymous greeting
rather than HTTP request that just happened to work
2014-12-04 13:42:27 +01:00
Min RK
4cff7bf372
allow vanilla socket security tests to run on Windows
...
- add ws2tcpip.h
- alias close->closesocket
- increment port in sec_null test
2014-12-04 13:42:19 +01:00
Min RK
3c1a710d06
Resolved conflict when picking c35c0ca
2014-12-04 13:42:00 +01:00
lysyloren
ed6bf9f178
Unbind socket with real endpoint when binding by wild-card * address
2014-10-29 10:17:30 +01:00
Phillip Mienk
6f9ad96225
Remove local pgm configuration option, cleanup configure.ac, remove unused Makefile.am instances.
2014-10-15 18:33:33 -07:00
Martin Hurton
fe4396c597
Merge pull request #1188 from hintjens/master
...
Problem: stream_engine.cpp security can be downgraded
2014-09-19 20:16:09 +02:00
Pieter Hintjens
77f14aad95
Problem: stream_engine.cpp security can be downgraded
...
Solution: accept only the mechanism defined by the socket options.
I've not tested this yet, so it's a speculative fix.
2014-09-19 19:24:45 +02:00
Martin Hurton
8e9005d591
Merge pull request #1186 from hintjens/master
...
Problem: test_security_curve does't try wrong mechanisms
2014-09-18 10:09:49 +02:00
Pieter Hintjens
57ade6d5bb
Problem: test_security_curve does't try wrong mechanisms
...
Solution: check that it rejects attempts to connect to a CURVE server
using NULL or PLAIN client.
2014-09-18 07:32:07 +02:00
evoskuil
8cd85857fb
Fix potential redefinition of common DEBUG symbol, replace tabs.
2014-09-02 23:39:33 -07:00
evoskuil
d76536eb70
Default Travis clang build fails on unused variable 'MAX_SENDS'.
2014-08-28 18:25:35 -07:00
Richard Newton
8926cb3ddb
Fix test broken when we changed FD_SETSIZE.
2014-08-26 08:36:51 +01:00
kreuzberger
212220dda7
Bugfix wrong CMakeLists.txt after rename of file
2014-08-12 21:34:30 +02:00
Pieter Hintjens
f20b70bef5
Cleaned up test_xpub_nodrop
...
Renamed test case to actually explain what it's testing, and cleaned up
the code a little.
2014-08-12 12:37:49 +02:00
Pieter Hintjens
785aebc6a8
Reworking Travis script
2014-08-12 12:37:49 +02:00
Pieter Hintjens
75d4f50be3
Problem: ZMQ_CURVE_SECRETKEY reads beyond end of Z85 data
...
Solution: change setsockopts on printable keys to expect 41, nor 40
bytes. Code still accepts 40 bytes for compatibility, and copies the
key to a well-terminated string before using it.
Fixes #1148
2014-08-12 12:37:49 +02:00
kreuzberger
f042ea9e26
better naming of flags and variables to real functionality: nodrop
2014-08-08 19:45:41 +02:00