Constantin Rack
89d4e995ef
Problem: return code of sodium_init() is not checked.
...
There are two todo comments in curve_client.cpp and curve_server.cpp that suggest
checking the return code of sodium_init() call. sodium_init() returns -1 on error,
0 on success and 1 if it has been called before and is already initalized:
https://github.com/jedisct1/libsodium/blob/master/src/libsodium/sodium/core.c
2015-11-03 18:04:42 +02:00
Min RK
28432b562d
Revert "stdint.h is available in VS2008 (1500)"
2015-11-03 09:56:19 +01:00
Pieter Hintjens
a73740b304
Backported fix for #1399
...
Problem: asserts if EINVAL recieved on read/write
This causes assertion failures after network reconnects.
Solution: allow EINVAL as a possible condition after read/write.
Fixes #829
Fixes #1399
Patch provided by Michele Dionisio @mdionisio, thanks :)
2015-11-01 09:10:09 +01:00
Rik van der Heijden
a9ca06847b
Fix issue #52 , reset all bits in getsockopt
2015-08-01 10:28:57 +02:00
Marin Atanasov Nikolov
5bd3a0d433
Typo fix
2015-06-23 14:34:33 +03:00
Constantin Rack
81464652d2
Solution: allow brackets in tcp address. Fixes #43
2015-06-23 08:29:36 +02:00
Gabi Davar
8a41475b74
stdint is available in VS2008 (1600)
2015-06-19 14:49:04 +03:00
Min RK
fd7ba4d509
don't check POLLOUT for single-socket proxies
2015-06-07 11:09:08 -07:00
Pieter Hintjens
d5a66f7b7d
Merge pull request #32 from hintjens/master
...
Problem: source file headers are somewhat confusing about LGPLv3
2015-06-02 23:41:02 +02: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
b5a00b76e8
Fix another degradation, CPU maxes out when POLLOUT is set because poll exits on POLLOUT and doesn't wait for POLLIN.
2015-05-27 14:21:47 +02:00
Rik van der Heijden
3a0f218cae
Fix degradation from #1382 , POLLOUT was tested but not requested
2015-05-24 22:38:22 +02:00
Rik van der Heijden
f5e1c607a5
Merged fix for #1382
2015-05-01 11:26:26 +02:00
Martin Hurton
6f75687c9e
pub: Don't delay pipe termination
2015-05-01 08:42:54 +02:00
Martin Hurton
8e26e4b35c
push: Don't delay pipe termination
2015-05-01 08:42:38 +02:00
Pieter Hintjens
fee19e26ac
Problem: shutdown asserts if WSASTARUP wasn't done previously
...
This is a silly assertion that causes problems if libzmq.dll is
called in some esoteric ways.
Solution: if the shutdown code detects WSANOTINITIALISED, then
exit silently.
Fixes #1377
Fixes #1144
2015-04-21 23:23:42 +02:00
Martin Hurton
160a7efae4
Adjust number of sent messages on hiccups
...
Not adjusting the sent message count may lead to situation when SUB
socket does not forward its subscriptions.
2015-02-20 09:13:47 +01: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
c6d5c965fa
Revert "Remove debugging cruft"
...
This reverts commit bbecdf397e0661ff469eb4898008c09d00efc397.
2015-02-18 12:36:19 -06:00
Thomas Rodgers
a69a043e14
Revert "Add connector.close() back"
...
This reverts commit 5e60f18d3a68947f469346162deae7e65732ba50.
2015-02-18 12:36:13 -06:00
Thomas Rodgers
5e60f18d3a
Add connector.close() back
...
Needed if session->push() ever fails
2015-02-18 11:17:41 -06:00
Thomas Rodgers
bbecdf397e
Remove debugging cruft
2015-02-18 11:14:23 -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
Topher Brown
89dd9fddaf
close (clean up) unsendable messages
2015-01-22 16:56:30 -05:00
Pieter Hintjens
583a5f9601
Merge pull request #14 from metadings/master
...
Upgrading zmq_msg_t to 64 bytes
2015-01-14 13:31:24 +01:00
metadings
d206fe2d45
Upgrading zmq_msg_t to 64 bytes
2015-01-14 13:26:48 +01:00
Thomas Rodgers
8f236dc55e
resolve #1296 Remove of ZMQ_IDENTITY_FD socket option
...
Revert "linking fd to pipe identity via socket option"
This reverts commit fe3e8c5c70dc3fbcb0244c5f4c52dcd71b80f858.
Conflicts:
include/zmq.h
src/pipe.hpp
src/session_base.cpp
2015-01-09 18:14:22 -06:00
Min RK
14c94c0df9
add session->zap_enabled()
...
checks mechanism != NULL, or NULL + non-empty zap_domain
2014-12-04 13:42:15 +01:00
Min RK
56e09c80f8
reject old ZMTP connections if auth enabled
...
auth mechanisms were only enabled when ZMTP handshake
is latest version, meaning that connections from old sockets
would skip authentication altogether
2014-12-04 13:42:07 +01:00
lysyloren
ed6bf9f178
Unbind socket with real endpoint when binding by wild-card * address
2014-10-29 10:17:30 +01:00
Martin Hurton
03c35d2659
Fix issue #1224
2014-10-23 10:28:19 +02: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
Pavel Pimenov
18ee219ce7
Fix V815 Decreased performance. Consider replacing the expression 'peer_address = ""' with 'peer_address.clear()'. stream_engine.cpp 99
2014-10-09 09:41:49 +04:00
Pavel Pimenov
0e3d40c806
Fix V815 Decreased performance. Consider replacing the expression 'options.socks_proxy_address != ""' with '!options.socks_proxy_address.empty()'. session_base.cpp 497
2014-10-09 09:40:59 +04:00
Pavel Pimenov
0b541b789a
Fix V803 Decreased performance. In case 'it' is iterator it's more effective to use prefix form of increment.
...
Replace iterator++ with ++iterator. stream_engine.cpp
http://www.viva64.com/en/d/0165/print/
2014-10-09 09:37:55 +04:00
Dan Mick
8fde2d646c
src/Makefile.am: libzmq.vers must go in dist tarball
...
Signed-off-by: Dan Mick <dmick@redhat.com>
2014-10-01 20:49:38 -07:00
Dan Mick
91cc9a2fd0
src/Makefile.am: i_properties.hpp removed some time ago
...
Signed-off-by: Dan Mick <dmick@localhost.localdomain>
2014-10-01 15:39:03 -07:00
Michaël Paul
7c5906d138
Problem : Build failed with MinGW on windows
2014-09-24 15:46:43 +02:00
Matthew Hawn
0900a48921
Problem: curve messages can be replayed
...
Solution: ensure message short nonces are strictly increasing and validate them
2014-09-19 18:07:57 -06: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
Jim Hague
94943bab3b
Fix hang terminating PGM ZMQ_SUB ( #822 ).
2014-09-17 17:21:44 +01:00
Huu Nguyen
5642366f10
Fix non-constant-expression narrowing
...
For OS X, the microseconds field is implemented as an int type. The implicit narrowing in the initializer list throws a compiler error for some compilers with C++11 support turned on. The specific error message is: "error: non-constant-expression cannot be narrowed from type 'long' to '__darwin_suseconds_t' (aka 'int') in initializer list [-Wc++11-narrowing]".
Tested on Clang 5.1.0 and Mac OS X 10.9.4.
2014-09-16 14:34:11 -07:00
Martin Hurton
50e0915f98
Stop session's timer when pipe terminates
2014-09-12 16:53:05 +02:00
Martin Hurton
5a497d7d0c
Code cleanup
2014-09-11 16:01:56 +02:00