0
0
mirror of https://github.com/zeromq/libzmq.git synced 2024-12-26 23:01:04 +08:00

2971 Commits

Author SHA1 Message Date
f18m
bf70ba7097 add ReadTheDocs integration 2023-11-02 20:46:16 +00:00
Luca Boccassi
267699b1ce
Finalize NEWS and ABI revision for 4.0.10 v4.0.10 2020-09-02 14:51:01 +01:00
Luca Boccassi
da570361b3 Problem: NEWS does not mention security advisories
Solution: add them
2020-09-02 14:34:19 +01:00
Luca Boccassi
d82117f95a
Merge pull request #170 from bluca/backport_4_x
Backport from libzmq
2020-08-31 22:13:16 +01:00
Luca Boccassi
05a28644b2 Problem: mtrie use of non-tail recursion leads to stack overflow
Solution: convert add and rm functions to iterative algorithms
2020-08-30 15:06:47 +01:00
Luca Boccassi
6e5f33579d Problem: unfinished message can be leaked by client pipe
When a pipe processes a delimiter and is already not in active state but still
has an unfinished message, the message is leaked.

Solution: issue a rollback before losing the reference to the pipe.
(cherry picked from commit 6815138501b9f2a69e807bc3527d93583e633233)

Conflicts:
	src/pipe.cpp
2020-08-30 15:06:47 +01:00
Luca Boccassi
c568258763 Problem: test_security_zap occasionally segfaults
Solution: check if a session's _pipe has been allocated before using
it, since as a consequence of creating the pipes after the handshake
it's no longer guaranteed to be there.

(cherry picked from commit 350b4b34f460b91b8fa8f692cf6bc30d561a5711)

Conflicts:
	src/session_base.cpp
2020-08-30 15:06:47 +01:00
Doron Somech
87c0447521 problem: zeromq connects peer before handshake is completed
Solution: delay connecting the peer pipe until the handshake is completed
(cherry picked from commit e7f0090b161ce6344f6bd35009816a925c070b09)

Conflicts:
	src/i_engine.hpp
	src/norm_engine.hpp
	src/pgm_receiver.hpp
	src/pgm_sender.hpp
	src/raw_engine.cpp
	src/session_base.cpp
	src/session_base.hpp
	src/stream_engine_base.cpp
	src/stream_engine_base.hpp
	src/udp_engine.hpp
	src/ws_engine.cpp
	src/zmtp_engine.cpp
	tests/test_mock_pub_sub.cpp
2020-08-30 15:06:47 +01:00
Luca Boccassi
28625e3479 Finalize NEWS and ABI revision for 4.0.9 v4.0.9 2019-07-08 17:12:41 +01:00
Luca Boccassi
e7639e7467
Merge pull request #169 from bluca/news
CVE-2019-13132
2019-07-08 17:12:23 +01:00
Luca Boccassi
0c229b488d Problem: cannot modify ulimit anymore on Travis
Solution: remove it from the script
2019-07-08 16:54:55 +01:00
Luca Boccassi
62e02cdea3 Problem: latest fixes missing from NEWS
Solution: add them
2019-07-05 15:37:14 +01:00
Luca Boccassi
e65c14e20e Problem: application metadata not parsed correctly when using CURVE
Solution: create buffers large enough to contain arbitrary metadata,
and add unit tests to cover the use case.
2019-07-02 12:23:41 +01:00
Pieter Hintjens
0e08990974 Merge pull request #159 from bluca/thread_opt_doc
Problem: manpage mentions options not available in 4.0.x
2016-06-17 17:37:34 +02:00
Luca Boccassi
56f04aa383 Revert "THREAD PRIORITY option documentation"
This reverts commit 630f991bfafe93b847ae1894c1db8fb9502ad5db.
2016-06-17 16:11:44 +01:00
Luca Boccassi
55b0c0d54c Bump version to 4.0.9 for next release 2016-06-17 12:39:51 +01:00
Luca Boccassi
463ce1d026 Finalize NEWS and bump ABI to 4:1:0 for 4.0.8 v4.0.8 2016-06-17 11:34:00 +01:00
Constantin Rack
38cbc1ad5f Merge pull request #158 from bluca/backport_tempnam
Problem: tempnam is deprecated and insecure
2016-06-09 19:10:17 +02:00
Luca Boccassi
effc448cc1 Update NEWS for fix #139 2016-06-09 15:15:58 +01:00
Pieter Hintjens
0c332648f8 Fixed wildcard IPC endpoint and added test case
Conflicts:
    .gitignore
    tests/Makefile.am
2016-06-09 15:10:53 +01:00
Pieter Hintjens
840feef1c3 Fixed use of deprecated tempnam 2016-06-09 15:01:29 +01:00
Pieter Hintjens
1a7a44998b Merge pull request #157 from bluca/travis_deploy
Problem: Deploying release artifacts is a manual process
2016-06-08 22:47:17 +02:00
Kevin Sapper
45c46c7af3 Problem: Deploying release artifacts is a manual process Solution: Use travis to deploy these artifacts automatically.
The deployment is triggered by tagging on the zeromq/libzmq repository.
Of the many builds travis is checking only the default one with
libsodium and drafts disabled is used for deployment.

For now the results of `make distcheck` are deployed as well as their
md5 and sha1 hash sums. Further changes may upload a generated
Changelog as well.
2016-06-04 19:20:25 +02:00
Luca Boccassi
e1577f21dd Problem: Travis CI does not run make distcheck
Solution: do it
2016-06-04 18:52:07 +02:00
Luca Boccassi
b2a2291373 Problem: make dist does not tar up macros.hpp
Solution: add it to Makefile.am file list
2016-06-04 18:52:07 +02:00
Luca Boccassi
2cee1e37f9 Problem: doc/Makefile.am ignores --without-docs
Solution: add the document files to the MAN_DOC and MAN_HTML targets
in doc/Makefile.am only if BUILD_DOC and INSTALL_MAN are set,
otherwise leave the targets empty to avoid errors in make distcheck.
2016-06-04 18:52:07 +02:00
Min RK
462e9625f7 Merge pull request #154 from hitstergtd/fix-NEWS-for-pr-1877
Problem: No NEWS entry for Issue #919
2016-04-20 11:12:55 +02:00
hitstergtd
2460b118c9 Problem: No NEWS entry for Issue #919
Solution: add entry and mark it as related to Issue #1877 and PR #1511
2016-04-20 09:04:08 +01:00
Constantin Rack
3a5075c59f Merge pull request #153 from bluca/solaris_fixes
Problem: build broken on Solaris 10
2016-04-13 22:57:04 +02:00
Luca Boccassi
fd1eb583c3 Update NEWS for fix #98 2016-04-12 23:41:56 +01:00
Luca Boccassi
9c749078b1 Problem: -lssp causes build failure on Solaris
Solution: add -lssp on Solaris only when libsodium is enabled and has
been found. Also disable pedantic and Werror, as libsodium headers
use pragma diagnostic which are not available in gcc 3.4.
2016-04-12 23:21:47 +01:00
Luca Boccassi
422b19654e Problem: no newline at end of zmq.cpp, gcc warn
Solution: add it to avoid warning on Solaris 10
2016-04-12 22:34:12 +01:00
Constantin Rack
dc5e6e568a Merge pull request #152 from bluca/ipv6_downgrade 2016-04-07 18:30:02 +02:00
Luca Boccassi
8cddc9122b Update NEWS for fix #1887 2016-04-07 17:11:48 +01:00
Luca Boccassi
0c66618e40 Problem: redundant Windows errno conversion
Solution: in the Windows-specific ifdef in tcp_listener set_address,
check for error and set errno only after the IPv4 fallback has failed
too, to avoid setting errno when the socket creation succeeds through
the fallback.
2016-04-07 14:31:37 +01:00
Luca Boccassi
6892b7b60d Problem: zmq_connect (TCP) has no IPv4 fallback
Solution: if opening an IPv6 TCP socket fails because IPv6 is not
available, try to open an IPv4 socket instead when creating and
connecting a TCP endpoint.
2016-04-07 14:31:37 +01:00
Luca Boccassi
792ee7690e Problem: zmq_bind IPv4 fallback still tries IPv6
Solution: if opening an IPv6 TCP socket fails because IPv6 is not
available, try to open an IPv4 socket instead when creating and
binding a TCP endpoint.
2016-04-07 14:17:16 +01:00
Pieter Hintjens
284c743814 Merge pull request #151 from bluca/lingex_fix_backport
Problem: connection might terminate prematurely
2016-03-30 19:41:45 +02:00
Luca Boccassi
ee8ba67ff5 Problem: NEWS not up to date with bug fixes
Solution: mention closing issue #1877
2016-03-30 18:11:29 +01:00
Soren Hansen
8f1b6f5872 Avoid terminating connections prematurely
While sending very large messages (far beyond what fits in a the tcp
buffer, so it takes multiple sendto system calls for it to finish),
zmq_close will close the connection regardless of ZMQ_LINGER.

In case no engine is attached, a pipe->check_read() is needed to look
for the delimiter in the pipe and ultimately trigger the pipe
termination.

However, if there *is* an engine attached, the check_read() looks ahead
and finds the delimiter and terminates the connection even though the
engine might actually still be in the middle of sending a message.

This happens because while the io_thread is still busy sending the data,
the pipe can get terminated and the io thread ends up being terminated.
2016-03-30 17:01:35 +01:00
Pieter Hintjens
42c6ffdc1d Merge pull request #150 from bluca/uninitialised_sockopt
Problem: curve keys getsockopt uninitialised read
2016-02-16 16:14:05 +01:00
Luca Boccassi
5002674fbe Problem: my name is not in the AUTHORS file
Solution: add myself to the list
2016-02-16 14:11:53 +00:00
Luca Boccassi
fdb9c7e035 Problem: NEWS not up to date with bug fixes
Solution: mention issues 1806 and 1807
2016-02-16 14:11:38 +00:00
Luca Boccassi
453b4ce596 Problem: Travis CI uses libsodium unstable branch
Solution: use stable branch instead of the development branch, and
also clone with --depth 1 to make it more efficient.
2016-02-16 14:11:21 +00:00
Luca Boccassi
6e1424349b Problem: curve keys getsockopt uninitialised read
Solution: always initialised zmq::options_t class variables arrays to
avoid reading uninitialised data when CURVE is not yet configured and
a getsockopt ZMQ_CURVE_{SERVER | PUBLIC | SECRET]KEY is issued.

Backport from libzmq.
2016-02-16 14:11:00 +00:00
Pieter Hintjens
1b95e5fead Merge pull request #149 from bluca/gcc6
Problem: build broken with gcc 6
2016-02-12 23:37:52 +01:00
meox
aafdcc8d2e [PATCH] fix error with gcc 5.2 2016-02-12 22:19:51 +00:00
Pieter Hintjens
36b4990e14 Merge pull request #147 from greenjava/master
Fixed errors with CMake 3.4 and VisualStudio 2015
2016-02-04 09:18:16 +01:00
Julien Waechter
c421799fb2 Fixed build with CMake >=3.4.x
Since CMake 3.4.x, in set_target_properties macro, COMPILE_FLAGS with space generate errors (version.rc.res is not generated)
2016-02-04 01:00:15 +01:00
Richard Newton
44588ab730 Update cmake to support Visual Studio 2015 2016-02-03 23:00:56 +01:00