All Versions
13
Latest Version
Avg Release Cycle
215 days
Latest Release
979 days ago

Changelog History
Page 1

  • v4.3.5 Changes

    October 09, 2023

    ๐Ÿš€ 0MQ version 4.3.5 stable, released on 2023/10/09

    • Relicensing from LGPL-3.0+ (with custom exceptions) to MPL-2.0 is now complete.
      libzmq is now distributed under the Mozilla Public License 2.0. Relicensing
      grants have been collected from all relevant authors, and some functionality
      has been clean-room reimplemented where that was not possible. In layman terms,
      the new license provides the same rights and obligations as before. Source
      files are now tagged using the SPDX license identifier format.
      ๐Ÿ‘€ Details of the relicensing process can be seen at:
      #2376
      Relicensing grants have been archived at:
      https://github.com/rlenferink/libzmq-relicense
      A special thanks to everybody who helped with this long and difficult task,
      with the process, the reimplementations, the collections and everything else.

    • ๐Ÿ†• New DRAFT (see NEWS for 4.2.0) socket options:

    • ๐Ÿ†• New DRAFT (see NEWS for 4.2.0) zmq_ppoll APIs was added that differs from
      ๐Ÿ“Š zmq_poll in the same way that ppoll differs from poll.
      ๐Ÿ‘€ See doc/zmq_ppoll.txt for details.

    • ๐ŸŽ Various bug fixes and performance improvements.

  • v4.3.4 Changes

    January 17, 2021

    ๐Ÿš€ 0MQ version 4.3.4 stable, released on 2021/01/17

    • ๐Ÿ†• New DRAFT (see NEWS for 4.2.0) socket option:

    • ๐Ÿ›  Fixed #4113 - compilation errors on kFreeBSD and GNU/Hurd

    • ๐Ÿ›  Fixed #4086 - excessive amount of socket files left behind in Windows TMP
      directory

    • ๐Ÿ›  Fixed #4108 - regression that breaks using IPv6 link-local addresses on Linux

    • ๐Ÿ›  Fixed #4078 - compilation errors on Android

    • ๐Ÿ›  Fixed #4074 - compilation error with ulibc and libbsd

    • ๐Ÿ›  Fixed #4060 - stack overflow on Windows x64

    • ๐Ÿ›  Fixed #4051 - various compilation errors on Windows ARM 32bit

    • ๐Ÿ›  Fixed #4043 - various compilation warnings with XCode

    • Fixed #4038 - return value of zmq_ctx_get changed unintentionally

  • v4.3.3 Changes

    September 07, 2020

    ๐Ÿš€ 0MQ version 4.3.3 stable, released on 2020/09/07

    • ๐Ÿ”’ Security advisories:

    • ๐Ÿ“ฆ Note for packagers: an external, self-contained sha1 library is now
      included in the source tree under external/sha1/ - it is licensed
      under BSD-3-Clause and thus it is fully compatible with libzmq's
      license.
      ๐Ÿ‘ It is only used if WebSockets support is enabled, and if neither GnuTLS nor
      NSS are available.

    • ๐Ÿ“ฆ Note for packagers: an internal reimplementation of strlcpy is now included,
      for wider platform compatibility.
      0๏ธโƒฃ libbsd can be used and is enabled by default if available instead of the
      ๐Ÿ”’ internal implementation, for better security maintenance in distros.

    • ๐Ÿ“ฆ Note for packagers: ZeroMQConfig.cmake is now installed in the arch-dependent
      ๐Ÿง subdirectory - eg: /usr/lib/x86_64-linux-gnu/cmake/

    • ๐Ÿ†• New DRAFT (see NEWS for 4.2.0) socket type:

    • ๐Ÿ†• New DRAFT (see NEWS for 4.2.0) socket option:

    • New DRAFT (see NEWS for 4.2.0) zmq_ctx_get_ext/zmq_ctx_set_ext APIs were added
      to allow enhancing the context options with variable data inputs.
      See doc/zmq_ctx_get_ext.txt and doc/zmq_ctx_set_ext.txt for details.

    • ๐Ÿ†• New DRAFT (see NEWS for 4.2.0) transport options WS and WSS added for support
      of WebSockets (and secure WebSockets via TLS) via the ZWS 2.0 protocol.
      WSS requires the GnuTLS library for TLS support. ZMQ_WSS_ specific socket
      ๐Ÿ‘ options were added to support TLS.
      0๏ธโƒฃ WebSockets support is disabled by default if DRAFT APIs are disabled.

    • ๐Ÿ†• New DRAFT (see NEWS for 4.2.0) socket type, PEER, which is thread safe and a
      related zmq_connect_peer function which atomically and thread-safely connects
      and returns a routing-id.

    • New DRAFT (see NEWS for 4.2.0) zmq_msg_init_buffer API was added to allow
      the construction of a message by copying from an existing buffer.

    • New DRAFT (see NEWS for 4.2.0) zmq_poller_size API was added to allow querying
      the number of sockets/fds registered in a zmq_poller.

    • ZMTP 3.1 peers will receive subscribe/cancel on PUB/SUB via commands rather
      ๐Ÿ›ฐ than using the first byte of the payload.

    • zmq_z85_decode now checks that the input string's length is at least 5 characters
      and always a multiple of 5 as per API specification.

    • ๐Ÿ›  Fixed #3566 - malformed CURVE message can cause memory leak

    • Fixed #3567 - missing ZeroMQ_INCLUDE_DIR in ZeroMQConfig.cmake when only
      static lib is built

    • ๐Ÿ›  Fixed #3576 - CURVE plaintext secrets now stored in libsodium's secure memory

    • ๐Ÿ›  Fixed #3588 - install debug libraries for debug msvc builds with CMake

    • Fixed #3591 - incorrect ZMQ_MAX_SOCKETS default value in doc

    • ๐Ÿ›  Fixed #3594 - fixed stream_engine use after free due to concurrent heartbeats

    • ๐Ÿ›  Fixed #3586 - error when compiling with MinGW due to usage of MS-specific
      __except keyword

    • ๐Ÿ›  Fixed #3603 - fixed CMake build on SL6.9

    • ๐Ÿ›  Fixed #3607 - added scripts to ease performance graph generation

    • ๐Ÿ›  Fixed #3608 - fix for IPv4 mapping not supported in DragonFlyBSD

    • ๐Ÿ›  Fixed #3636 - added ENABLE_PRECOMPILED CMake option to fix build with Ninja

    • ๐Ÿ›  Fixed #2862 - UDP engine aborts on networking-related errors from socket
      syscalls

    • ๐Ÿ›  Fixed #3656 - segfault on sending data from XSUB to XPUB

    • ๐Ÿ›  Fixed #3646 - static-only test run fails

    • Fixed #3668 - fixed CMAKE_CXX_FLAGS_* regexes on MSVC

    • ๐Ÿ›  Fixed #110 - do not include winsock2.h in public zmq.h header

    • ๐Ÿ›  Fixed #3683 - allow "configure --disable-maintainer-mode"

    • ๐Ÿ›  Fixed #3686 - fix documentation about sockets blocking on send operations

    • ๐Ÿ›  Fixed #3323 - fix behavior of ZMQ_CONFLATE on PUB sockets

    • ๐Ÿ›  Fixed #3698 - fix build on IBM i/PASE/os400

    • ๐Ÿ›  Fixed #3705 - zero-sized messages cause assertion when glibc assertion are on

    • ๐Ÿ›  Fixed #3713 - remove dependency on math library by avoiding std::ceil

    • ๐Ÿ›  Fixed #3694 - build targeting Windows XP is broken

    • ๐Ÿ›  Fixed #3691 - added support for IPC on Windows 10 via AF_UNIX

    • ๐Ÿ›  Fixed #3725 - disable by default test that requires sudo on CMake

    • ๐Ÿ›  Fixed #3727 - fix zmq_poller documentation example

    • ๐Ÿ›  Fixed #3729 - do not check for FD_OOB when using WSAEventSelect on Windows

    • ๐Ÿ›  Fixed #3738 - allow renaming the library in CMake

    • ๐Ÿ›  Fixed #1808 - use AF_UNIX instead of TCP for the internal socket on Windows 10

    • Fixed #3758 - fix pthread_set_affinity detection in CMake

    • ๐Ÿ›  Fixed #3769 - fix undefined behaviour in array.hpp

    • ๐Ÿ›  Fixed #3772 - fix compiling under msys2-mingw

    • ๐Ÿ›  Fixed #3775 - add -latomic to the private libs flag in pkg-config if needed

    • ๐Ÿ›  Fixed #3778 - fix documentation of zmq_poller's thread safety

    • Fixed #3792 - do not allow creation of new sockets after zmq_ctx_shutdown

    • ๐Ÿ›  Fixed #3805 - improve performance of CURVE by reducing copies

    • ๐Ÿ›  Fixed #3814 - send subscribe/cancel as commands to ZMTP 3.1 peers

    • ๐Ÿ›  Fixed #3847 - fix building without PGM and NORM

    • ๐Ÿ›  Fixed #3849 - install .cmake file in arch-dependent subdirectory

    • ๐Ÿ›  Fixed #4005 - allow building on Windows ARM/ARM64

  • v4.3.2 Changes

    July 08, 2019

    ๐Ÿš€ 0MQ version 4.3.2 stable, released on 2019/07/08

    CVE-2019-13132: a remote, unauthenticated client connecting to a
    libzmq application, running with a socket listening with CURVE
    encryption/authentication enabled, may cause a stack overflow and
    overwrite the stack with arbitrary data, due to a buffer overflow in
    ๐Ÿ”ง the library. Users running public servers with the above configuration
    โฌ†๏ธ are highly encouraged to upgrade as soon as possible, as there are no
    known mitigations. All versions from 4.0.0 and upwards are affected.
    Thank you Fang-Pen Lin for finding the issue and reporting it!

    New DRAFT (see NEWS for 4.2.0) zmq_socket_monitor_versioned API that supports
    a versioned monitoring events protocol as a parameter. Passing 1 results in
    the same behaviour as zmq_socket_monitor.
    ๐Ÿ”– Version 2 of the events protocol allows new events, new metadata, different
    socket types for the monitors and more. It is described in details in
    doc/zmq_socket_monitor_versioned.txt

    New DRAFT (see NEWS for 4.2.0) zmq_socket_monitor_pipes_stats that triggers
    a new ZMQ_EVENT_PIPES_STATS to be delivered via zmq_socket_monitor_versioned
    v2 API, which contains the current status of all the queues owned by the
    monitored socket. See doc/zmq_socket_monitor_versioned.txt for details.

    New DRAFT (see NEWS for 4.2.0) zmq_poller_fd that returns the FD of a thread
    ๐Ÿ‘€ safe socket. See doc/zmq_poller.txt for details.

    ๐Ÿ†• New DRAFT (see NEWS for 4.2.0) socket options:

    • ZMQ_XPUB_MANUAL_LAST_VALUE is similar to ZMQ_XPUB_MANUAL but allows to avoid
      duplicates when using last value caching.
    • ZMQ_SOCKS_USERNAME and ZMQ_SOCKS_PASSWORD that implement SOCKS5 proxy
      authentication.
      See doc/zmq_setsockopt.txt and doc/zmq_getsockopt.txt for details.

    ๐Ÿ Implemented background thread names for Windows, when the Visual Studio
    debugger is being used.

    ๐Ÿ”’ Fixed #3358 - test_security_zap failing due to SIGBUS on SPARC64, hard-coded
    โœ… IPC socket binds in tests cause race conditions

    ๐Ÿ›  Fixed #3361 - enabling GSSAPI support (when using autools) does not work due
    to regression introduced in 4.2.3

    Fixed #3362 - remove documentation for ZMQ_THREAD_PRIORITY context option
    getter, it's not implemented

    ๐Ÿ›  Fixed #3363 - tests fail to build due to stricter compiler printf validation
    in new versions of GCC

    ๐Ÿ›  Fixed #3367 - try to infer cacheline size at build time, first with
    getconf LEVEL1_DCACHE_LINESIZE, and then by reading
    /sys/devices/system/cpu/cpu0/cache/index0/coherency_line_size
    (autoconf only), and only then falling back to the previous
    0๏ธโƒฃ default of 64 bytes. Avoids false sharing on POWER and s390x.
    Import ax_func_posix_memalign.m4 as a more reliable check for
    posix_memalign presence on some unix platforms.
    Prefer c++11 atomic primitives to compiler intrinsics, when
    both are available, as the former is more reliable.
    Set test_pair_ipc and test_rebind_ipc to XFAIL on GNU/Hurd due
    to non-functioning getsockname on AF_UNIX.

    ๐Ÿ›  Fixed #3370 - Make queue length and HWM state observable

    ๐Ÿ›  Fixed #3373 - performance regression in zmq_poll on CentOS 6/7

    ๐Ÿ›  Fixed #3375 - assign names to all pthreads created by the library to ease
    debugging

    Fixed #3376 - assigned random TIPC port is not returned by ZMQ_LAST_ENDPOINT

    Fixed #3385 - TCP port in ZMQ_LAST_ENDPOINT depends on global locale

    Fixed #3404 - use std::condition_variable_any when possible

    ๐Ÿ›  Fixed #3436 - reconnect interval exponential backoff and may lead to integer
    overflows

    ๐Ÿ›  Fixed #3440 - improve zmq_proxy performance by batching of up to 1000
    consecutive messages (if any) and add perf/proxy_thr tool

    ๐Ÿ›  Fixed #3451 - fix support of /dev/poll on Solaris

    ๐Ÿ›  Fixed #3452 - strnlen may not be available

    Fixed #1462 - test failure in test_filter_ipc due to invalid system groups

    ๐Ÿ›  Fixed #3269 - Boost.ASIO integration stopped working with v4.3.0

    ๐Ÿ›  Fixed #3479 - ZeroMQ does not build for QNX 6.6 with CMake

    ๐Ÿ›  Fixed #3481 - add include to fix uClibc++ compilation

    ๐Ÿ›  Fixed #3491 - build broken on Fedora 30

    ๐Ÿ›  Fixed #3494 - ZeroMQConfig.cmake fails if shared libraries are not built

    ๐Ÿ›  Fixed #3498 - syntax error on Windows related to socket descriptor type

    ๐Ÿ›  Fixed #3500 - PLAIN HELLO message incorrectly uses WELCOME literal, regression
    introduced in 4.3.0

    ๐Ÿ›  Fixed #3517 - configure errors because of syntax errors in the use of test
    shell command

    ๐Ÿ›  Fixed #3521 - document how to achieve high performance with the PGM transport

    Fixed #3526 - failure case behavior unclear in zmq_msg_send documentation

    ๐Ÿ›  Fixed #3537 - fix build on z/OS by using pthread_equal instead of comparing
    variables directly

    ๐Ÿ›  Fixed #3546 - CMake links with librt on MinGW which is not available

    ๐Ÿ’… Many coding style, duplication, testing and static analysis improvements.

  • v4.3.2-win

    August 27, 2019
  • v4.3.1 Changes

    January 12, 2019

    ๐Ÿš€ 0MQ version 4.3.1 stable, released on 2019/01/12

    CVE-2019-6250: A vulnerability has been found that would allow attackers to direct a peer to
    jump to and execute from an address indicated by the attacker.
    ๐Ÿš€ This issue has been present since v4.2.0. Older releases are not affected.
    NOTE: The attacker needs to know in advance valid addresses in the peer's
    memory to jump to, so measures like ASLR are effective mitigations.
    NOTE: this attack can only take place after authentication, so peers behind
    CURVE/GSSAPI are not vulnerable to unauthenticated attackers.
    ๐Ÿ‘€ See #3351 for more details.
    Thanks to Guido Vranken for uncovering the issue and providing the fix!

    ๐Ÿ“ฆ Note for packagers: as pkg-config's Requires.private is now used to properly
    ๐Ÿ— propagate dependencies for static builds, the libzmq*-dev or zeromq-devel or
    ๐Ÿ“ฆ equivalent package should now depend on the libfoo-dev or foo-devel packages
    of all the libraries that zmq is linked against, or pkg-config --libs libzmq
    will fail due to missing dependencies on end users machines.

    ๐Ÿ›  Fixed #3351 - remote code execution vulnerability.

    ๐Ÿ›  Fixed #3343 - race condition in ZMQ_PUSH when quickly disconnecting and
    reconnecting causes last part of multi-part message to get
    "stuck" and resent by mistake to the new socket.

    ๐Ÿ›  Fixed #3336 - set Requires.private in generate pkg-config file.

    ๐Ÿ›  Fixed #3334 - set TCP_NODELAY after connect() on Windows for the I/O socket.

    ๐Ÿ›  Fixed #3326 - assert on Android when opening a socket and disabling WiFi.

    ๐Ÿ›  Fixed #3320 - build failure on OpenBSD with GCC.

  • v4.3.0 Changes

    November 28, 2018

    ๐Ÿš€ 0MQ version 4.3.0 stable, released on 2018/11/28

    The following DRAFT APIs have been marked as STABLE and will not change
    anymore:

    • ZMQ_MSG_T_SIZE context option (see doc/zmq_ctx_get.txt)
    • ZMQ_THREAD_AFFINITY_CPU_ADD and ZMQ_THREAD_AFFINITY_CPU_REMOVE (Posix only)
      ๐Ÿšš context options, to add/remove CPUs to the affinity set of the I/O threads.
      See doc/zmq_ctx_set.txt and doc/zmq_ctx_get.txt for details.
    • ZMQ_THREAD_NAME_PREFIX (Posix only) context option, to add a specific
      integer prefix to the background threads names, to easily identify them.
      See doc/zmq_ctx_set.txt and doc/zmq_ctx_get.txt for details.
    • ZMQ_GSSAPI_PRINCIPAL_NAMETYPE and ZMQ_GSSAPI_SERVICE_PRINCIPAL_NAMETYPE
      socket options, for the corresponding GSSAPI features. Additional
      definitions for principal name types:
      • ZMQ_GSSAPI_NT_HOSTBASED
      • ZMQ_GSSAPI_NT_USER_NAME
      • ZMQ_GSSAPI_NT_KRB5_PRINCIPAL
        ๐Ÿ‘€ See doc/zmq_gssapi.txt for details.
    • ZMQ_BINDTODEVICE socket option (Linux only), which will bind the
      ๐Ÿง socket(s) to the specified interface. Allows to use Linux VRF, see:
      ๐Ÿ“š https://www.kernel.org/doc/Documentation/networking/vrf.txt
      NOTE: requires the program to be ran as root OR with CAP_NET_RAW
    • zmq_timers_* APIs. These functions can be used for cross-platforms timed
      ๐Ÿ‘€ callbacks. See doc/zmq_timers.txt for details.
    • The following socket monitor events:
      • ZMQ_EVENT_HANDSHAKE_FAILED_NO_DETAIL: unknown errors during handshake.
      • ZMQ_EVENT_HANDSHAKE_SUCCEEDED: Handshake completed with authentication.
      • ZMQ_EVENT_HANDSHAKE_FAILED_PROTOCOL: Protocol errors with peers or ZAP.
      • ZMQ_EVENT_HANDSHAKE_FAILED_AUTH: Failed authentication requests.
        See doc/zmq_socket_monitor.txt for more details and error codes.
    • zmq_stopwatch_intermediate which returns the time elapsed without stopping
      the stopwatch.
    • zmq_proxy_steerable command 'STATISTICS' to retrieve stats about the amount
      of messages and bytes sent and received by the proxy.
      See doc/zmq_proxy_steerable.txt for more information.

    ๐Ÿ— The build-time configuration option to select the poller has been split, and
    ๐Ÿ†• new API_POLLER (CMake) and --with-api-poller (autoconf) options will now
    ๐Ÿ“Š determine what system call is used to implement the zmq_poll/zmq_poller APIs.
    The previous POLLER and --with-poller options now only affects the
    internal I/O thread. In case API_POLLER is not specified, the behaviour keeps
    ๐Ÿš€ backward compatibility intact and will be the same as with previous releases.

    0๏ธโƒฃ The non-default "poll" poller for the internal I/O thread (note: NOT for the
    ๐Ÿ“Š zmq_poll/zmq_poller user APIs!) has been disabled on Windows as WSAPoll does
    ๐Ÿ‘€ not report connection failures. For more information see:

    - https://bugs.python.org/issue16507

    ๐Ÿ†• New epoll implementation for Windows, using the following implementation:
    https://github.com/piscisaureus/wepoll/tree/v1.5.4
    ๐Ÿ‘ท To use this, select "epoll" as the poller option in the build system.
    Note for distributors: the wepoll source code is embedded and distributed.
    It is licensed under the BSD-2-Clause and thus it is compatible with LGPL-3.0.
    ๐Ÿ— Note that, if selected at build time, the license text must be distributed
    with the binary in accordance to the license terms. A copy can be found at:
    external/wepoll/license.txt

    ๐Ÿ—„ The pre-made Visual Studio solutions file are deprecated, and users are
    encouraged to use the CMake solution generation feature instead.

    ๐Ÿ†• New DRAFT (see NEWS for 4.2.0) socket options:

    • ZMQ_ROUTER_NOTIFY to deliver a notification when a peer connects and/or
      disconnects in the form of a routing id plus a zero-length frame.
    • ZMQ_MULTICAST_LOOP to control whether the data sent should be looped back
      on local listening sockets for UDP multicast sockets (ZMQ_RADIO).
      See doc/zmq_setsockopt.txt and doc/zmq_getsockopt.txt for details.

    New perf tool, perf/benchmark_radix_tree, to measure the performance of the
    different internal implementations of the trie algorithm used to track
    ๐Ÿ‘ subscriptions. Requires a compiler that supports C++11.

    ๐Ÿ†• New autoconf flag "--enable-force-CXX98-compat" which will force -std=gnu++98
    ๐Ÿ‘ and, if the compiler supports them (clang++ at the moment), it will also add
    -Wc++98-compat -Wc++98-compat-pedantic so that compatibility with C++98 can
    โœ… be tested.

    ๐Ÿ’… Many, many coding style, duplication and static analysis improvements.

    ๐Ÿ Many, many improvements to the CMake build system, especially on Windows.

    โœ… Many, many improvements to unit tests.

    ๐Ÿ›  Fixed #3036 - Compilation error when -pedantic is used.

    Fixed #3028 - Failure when zmq_poller_destroy is called after zmq_ctx_term.

    ๐Ÿ›  Fixed #2989 - CMake: Linker PDB install rule does not work when Visual Studio
    generators are used.

    ๐Ÿ›  Fixed #3045 - configure.ac: search for dladdr only when using libunwind.

    ๐Ÿ›  Fixed #3060 - REQ sockets terminate TCP connection after first heartbeat if
    ZMQ_HEARTBEAT_IVL is set.

    ๐Ÿ›  Fixed #2212 - UDP: need ability to specify bind address separately from
    multicast address for multi-homed hosts.

    ๐Ÿ›  Fixed #2891 - UDP: address name resolution is limited to dotted IPv4 rather
    than being capable of IPv4, IPv6, and hostname lookup.

    ๐Ÿ›  Fixed #3085 - autoconf/CMake getrandom test does not check if it's working but
    only for its presence.

    ๐Ÿ›  Fixed #3090 - compilation broken with Solaris Studio.

    Fixed #3094 - UDP: pass interface via IP[V6]_MULTICAST_IF if provided.

    ๐Ÿ›  Fixed #3061 - implement ZMTP 3.1 ping/pong context sending/receiving.

    ๐Ÿ›  Fixed #2188 - Added documentation for new zmq_poller API.

    Fixed #3088 - zmq_poller_add/zmq_poller_modify should reject invalid events
    arguments.

    Fixed #3042 - Fixed compilation on ARM with ZMQ_ATOMIC_PTR_MUTEX.

    Fixed #3107 - test_immediate_3/test_reconnect_inproc do not terminate with
    ๐Ÿ POLL as the I/O thread poller under Windows.

    ๐Ÿ›  Fixed #3046 - Aborts when iOS abuses EBADF to report a socket has been
    reclaimed.

    Fixed #3136 - Cannot set ZMQ_HEARTBEAT_TTL to more than 655.3 seconds.

    ๐Ÿ›  Fixed #3083 - link with -latomic when needed.

    ๐Ÿ›  Fixed #3162 - build failure with MUSL libc.

    Fixed #3158 - -1 value of ZMQ_RECONNECT_IVL was not correctly handled on some
    platforms.

    ๐Ÿ›  Fixed #3170 - improved documentation for ZMQ_PAIR.

    ๐Ÿ›  Fixed #3168 - correctly use symbols map on Debian/kFreeBSD and Debian/HURD
    to avoid exporting standard library symbols.

    ๐Ÿ›  Fixed #3168 - correctly process ZMTP 3.1 cancel/subscribe commands.

    ๐Ÿ›  Fixed #3171 - improve documentation for ZMQ_CONFLATE.

    ๐Ÿ›  Fixed #2876 - stack overflow on Windows 64.

    ๐Ÿ›  Fixed #3191 - race condition with received message causes
    ZMQ_CONNECT_ROUTING_ID to be assigned to wrong socket.

    Fixed #3005 - added documentation for new zmq_timers_* API.

    ๐Ÿ›  Fixed #3222 - use /Z7 debug on Release builds too on Windows (CMake).

    ๐Ÿ›  Fixed #3226 - possible PGM receiver crash.

    ๐Ÿ›  Fixed #3236 - UDP dish socket can't bind to a multicast port already in use.

    ๐Ÿ›  Fixed #3242 - improve HWM documentation.

    Fixed #2488 - improve zmq_msg_send doc return value documentation.

    ๐Ÿ›  Fixed #3268 - HWM in ZMQ_DGRAM socket does not respect multipart message.

    Fixed #3284 - added support for ZMQ_MULTICAST_HOPS with UDP sockets.

    ๐Ÿ›  Fixed #3245 - use-after-free reported in zmq::pipe_t::terminate.

    ๐Ÿ›  Fixed #1400 - use patricia trie for subscription to improve performances and
    ๐Ÿ— memory usage. Note: only active in DRAFT builds for now.

    ๐Ÿ›  Fixed #3263 - fix abort on Windows when a large TCP read is requested and
    fails.

    ๐Ÿ›  Fixed #3312 - fix build on Android Things 1.06 with Termux.

  • v4.2.5 Changes

    March 23, 2018

    ๐Ÿš€ 0MQ version 4.2.5 stable, released on 2018/03/23

    ๐Ÿ›  Fixed #3018 - fix backward-incompatible change in the NULL auth
    mechanism that slipped in 4.2.3 and made connections
    with a ZAP domain set on a socket but without a working
    ZAP handler fail. See ZMQ_ZAP_ENFORCE_DOMAIN and RFC27.

    ๐Ÿ›  Fixed #3016 - clarify in zmq_close manpage that the operation will
    complete asynchronously.

    ๐Ÿ›  Fixed #3012 - fix CMake build problem when using LIBZMQ_WERROR and a
    compiler other than GCC.

  • v4.2.4 Changes

    March 21, 2018

    ๐Ÿ†• New DRAFT (see NEWS for 4.2.0) socket options:

    • ZMQ_LOOPBACK_FASTPATH to enable faster TCP loopback on Windows
    • ZMQ_METADATA to set application-specific metadata on a socket
      See doc/zmq_setsockopt.txt and doc/zmq_getsockopt.txt for details.

    ๐Ÿ†• New DRAFT (see NEWS for 4.2.0) context options:

    • ZMQ_ZERO_COPY_RECV to disable zero-copy receive to save memory
      ๐ŸŽ at the expense of slower performance
      See doc/zmq_ctx_set.txt and doc/zmq_ctx_get.txt for details.

    New DRAFT API zmq_stopwatch_intermediate which returns the time
    elapsed without stopping the stopwatch.

    ๐Ÿ‘ TIPC: support addressing TIPC Port Identity addresses.

    โž• Added CMake option to disable tests: BUILD_TESTS

    โž• Added CMake and autotools make targets to support clang-formatter:
    ๐Ÿ‘‰ make clang-format, clang-format-check and clang-format-diff to
    ๐Ÿ’… help developers make sure their code conforms to the style guidelines

    โœ… For distributors: a new test framework has been added, which
    includes a copy of the Unity source code. This source code library is
    distributed under the MIT license and thus is compatible with
    libzmq's LGPL3.

    ๐Ÿ›  Fixed #2867 - add ZeroMQConfig.cmake.in to distributable tarball

    ๐Ÿ›  Fixed #2868 - fix OpenBSD build

    ๐Ÿ›  Fixed #2870 - fix VC++ 11.0 (VS2012) build

    ๐Ÿ›  Fixed #2879 - prevent duplicate connections on PUB sockets

    ๐Ÿ›  Fixed #2872 - fix CMake tests on Windows

    ๐Ÿ›  Fixed #2895 - fix assert on Windows with POLL

    ๐Ÿ›  Fixed #2920 - fix Windows build with Intel compiler

    ๐Ÿ›  Fixed #2930 - use std::atomic when available with VC++ and VS2015

    ๐Ÿ›  Fixed #2910 - fix race condition with ZMQ_LINGER socket option

    Fixed #2927 - add support for ZMQ_XPUB_NODROP on ZMQ_RADIO

    Fixed #2820 - further clarify ZMQ_XPUB_VERBOSE(R) documentation.

    Fixed #2911 - ZMQ_DISH over UDP triggers errno_assert() after hitting
    watermark

    ๐Ÿ›  Fixed #2942 - ZMQ_PUB crash when due to high volume of subscribe and
    unsubscribe messages, an unmatched unsubscribe message is
    received in certain conditions

    ๐Ÿ›  Fixed #2946 - fix Windows CMake build when BUILD_SHARED is off

    ๐Ÿ›  Fixed #2960 - fix build with GCC 8

    ๐Ÿ›  Fixed #2967 - fix race condition on thread safe sockets due to pthread
    condvar timeouts on OSX

    ๐Ÿ›  Fixed #2977 - fix TIPC build-time availability check to be more relaxed

    ๐Ÿ›  Fixed #2966 - add support for WindRiver VxWorks 6.x

    ๐Ÿ›  Fixed #2963 - fix some PVS Studio static analysis warnings

    ๐Ÿ›  Fixed #2983 - fix MinGW cross-compilation

    ๐Ÿ›  Fixed #2991 - fix mutex assert at shutdown when the zmq context is part
    of a class declared as a global static

  • v4.2.3 Changes

    December 13, 2017

    ๐Ÿš€ 0MQ version 4.2.3 stable, released on 2017/12/13

    API change: previously ZMQ_POLLOUT on a ZMQ_ROUTER socket returned always
    true due to how the type works. When ZMQ_ROUTER_MANDATORY is set, sending
    fails when the peer is not available, but ZMQ_POLLOUT always returns true
    anyway, which does not make sense. Now when ZMQ_ROUTER_MANDATORY is set,
    ZMQ_POLLOUT on a ZMQ_ROUTER will return true only if at least one peer is
    available.
    Given ZMQ_POLLOUT with ZMQ_ROUTER was not usable at all previously, we do
    not consider this a breakage warranting a major or minor version increase.

    ZMQ_IDENTITY has been renamed to ZMQ_ROUTING_ID and ZMQ_CONNECT_RID has been
    renamed to ZMQ_CONNTECT_ROUTING_ID to disambiguate. ZMQ_IDENTITY and
    ZMQ_CONNECT_RID are still available to keep backward compatibility, and will
    ๐Ÿš€ be removed in a future release after further advance notice.

    DRAFT API change: zmq_poller_wait, zmq_poller_wait_all and zmq_poller_poll
    โฑ have been changed to be inline with other existing APIs that have a timeout
    to return EAGAIN instead of ETIMEDOUT as the errno value.
    ๐Ÿ‘€ See #2713 for details.

    Existing non-DRAFT socket types ZMQ_REP/REQ, ZMQ_ROUTER/DEALER and
    ๐Ÿ—„ ZMQPUB/SUB, that were previously declared deprecated, have been reinstated
    ๐Ÿ‘€ as stable and supported. See #2699 for details.

    ๐Ÿ‘ Tweetnacl: add support for, and use preferably if available, getrandom() as
    a simpler and less error-prone alternative to /dev/urandom on OSes where it
    ๐Ÿง is available (eg: Linux 3.18 with glibc 2.25).

    ๐Ÿšš Curve: all remaining traces of debug output to console are now removed, and
    ๐Ÿ†• new DRAFT events are available to properly debug CURVE, PLAIN, GSSAPI and
    ๐Ÿ‘€ ZAP events and failures. See below for details on the new events.

    ๐Ÿ†• New DRAFT (see NEWS for 4.2.0) socket options:

    • ZMQ_GSSAPI_PRINCIPAL_NAMETYPE and ZMQ_GSSAPI_SERVICE_PRINCIPAL_NAMETYPE, for
      the corresponding GSSAPI features. Additional definitions for principal
      name types:
      • ZMQ_GSSAPI_NT_HOSTBASED
      • ZMQ_GSSAPI_NT_USER_NAME
      • ZMQ_GSSAPI_NT_KRB5_PRINCIPAL
        ๐Ÿ‘€ See doc/zmq_gssapi.txt for details.
    • ZMQ_BINDTODEVICE (Linux only), which will bind the socket(s) to the
      ๐Ÿง specified interface. Allows to use Linux VRF, see:
      ๐Ÿ“š https://www.kernel.org/doc/Documentation/networking/vrf.txt
      NOTE: requires the program to be ran as root OR with CAP_NET_RAW
    • ZMQ_ZAP_ENFORCE_DOMAIN, enables strict RFC 27 compatibility mode and makes
      ๐Ÿ”’ the ZAP Domain mandatory when using security. See:
      https://rfc.zeromq.org/spec:27/ZAP
      See doc/zmq_setsockopt.txt and doc/zmq_getsockopt.txt for details.

    ๐Ÿ†• New DRAFT (see NEWS for 4.2.0) context options:

    • ZMQ_THREAD_AFFINITY_CPU_ADD and ZMQ_THREAD_AFFINITY_CPU_REMOVE (Posix only),
      ๐Ÿšš to add and remove CPUs to the affinity set of the I/O threads. Useful to pin
      the background threads to specific CPUs.
    • ZMQ_THREAD_NAME_PREFIX (Posix only), to add a specific integer prefix to the
      background threads names, to easily identify them for debugging purposes.
      See doc/zmq_ctx_set.txt and doc/zmq_ctx_get.txt for details.

    ๐Ÿ†• New DRAFT (see NEWS for 4.2.0) message property name definitions to facilitate
    the use of zmq_msg_gets:

    • ZMQ_MSG_PROPERTY_ROUTING_ID
    • ZMQ_MSG_PROPERTY_SOCKET_TYPE
    • ZMQ_MSG_PROPERTY_USER_ID
    • ZMQ_MSG_PROPERTY_PEER_ADDRESS
      See doc/zmq_msg_gets.txt for details.

    New DRAFT (see NEWS for 4.2.0) API zmq_socket_get_peer_state, to be used to
    query the state of a specific peer (via routing-id) of a ZMQ_ROUTER socket.

    ๐Ÿ†• New DRAFT (see NEWS for 4.2.0) Socket Monitor events:

    • ZMQ_EVENT_HANDSHAKE_FAILED_NO_DETAIL, unknown system error and returns errno
    • ZMQ_EVENT_HANDSHAKE_SUCCEEDED, handshake was successful
    • ZMQ_EVENT_HANDSHAKE_FAILED_PROTOCOL, protocol errors between peers or server
      and ZAP handler. Returns one of ZMQ_PROTOCOL_ERROR_* - see manpage for list
    • ZMQ_EVENT_HANDSHAKE_FAILED_AUTH, failed authentication, returns ZAP status
      ๐Ÿ”’ These events trigger when the ZMTP security mechanism handshake is
      completed or failed. See doc/zmq_socket_monitor.txt for more information.

    New DRAFT (see NEWS for 4.2.0) zmq_proxy_steerable command 'STATISTICS' to
    retrieve stats about the amount of messages and bytes sent and received by
    the proxy. See doc/zmq_proxy_steerable.txt for more information.

    โž• Add new autoconf --disable-libunwind option to stop building with libunwind
    even if it is available.

    โž• Add new autoconf --disable-Werror option to avoid building with the Werror
    flag.

    ๐Ÿ— Use pkg-config as the first method for finding and building with external
    optional dependencies such as libnorm, libpgm and gssapi.

    On Posix platform where the feature is available, name the ZMQ background
    threads to simplify debugging: "ZMQbg/<num_thread>"

    Improve performance of zmq_poller_* (and zmq_poll and zmq_proxy when building
    with DRAFT APIs enabled).

    ๐Ÿ”จ The TCP unit tests have been refactored to bind and connect to random ports
    โœ… rather than hard-coded ones, to allow running tests in parallel.
    There are 6 exceptions where it is necessary to use an hard-coded port to
    โœ… test specific code paths that would not be exercised when binding to a
    โœ… wildcard port. These are listed in tests/testutil.hpp so that distributions
    can easily patch them if they wish to and so that they can be unique across
    โœ… all the tests, allowing parallel runs.
    โœ… The IPC unit tests have been changed as well to use unique socket file names
    โœ… per test, where before there were some clashes.

    ๐Ÿ›  Fixed #2349 - fix building with libsodium when using CMake

    ๐Ÿ›  Fixed #2334 - do not assert when tuning socket options fails due to network
    errors, but simply retry again when connecting or send a socket monitor
    ZMQ_EVENT_ACCEPT_FAILED event when binding

    ๐Ÿ›  Fixed #2341 - fix source files path in VS2015 solution

    ๐Ÿ›  Fixed #2344 - Note that on Windows with VS2012 it is mandatory to increase
    0๏ธโƒฃ the default stack size to at least 2MB

    Fixed #2348 - ZMQ_ROUTER send with ZMQ_ROUTER_MANDATORY can be stuck in case of
    network problem

    ๐Ÿ›  Fixed #2358 - occasional abort on zmq_connect on Windows

    Fixed #2370 - zmq_curve_keypair should return an error on failure rather
    than ignoring them and always returning 0

    Fixed #2452 - __STDC_LIMIT_MACROS before precompiled headers causes VC++
    โš  warning

    ๐Ÿ›  Fixed #2457 - fix building with libsodium in Visual Studio solutions

    ๐Ÿ›  Fixed #2466 - add const qualifier to internal and public API that does not
    modify parameters

    ๐Ÿ›  Fixed #2471 - do more checks for OOM conditions when dynamic allocations is
    ๐Ÿ‘‰ used

    ๐Ÿ›  Fixed #2476 - assertion causes abort after ZAP stop at shutdown

    ๐Ÿ›  Fixed #2479 - improve zmq_poller performance on Windows

    ๐Ÿ›  Fixed #2481 - potential memory leaks due to ZMTP handshake failures

    Fixed #2531 - ZMQ_GSSAPI_PRINCIPAL sockopt has no effect on client side

    ๐Ÿ— Fixed #2535 - add BUILD_SHARED and BUILD_STATIC options to CMake, both on by
    ๐Ÿ— default, to toggle shared and static library builds

    Fixed #2537 - use SYSTEM_CLOCK on OSX and CLOCK_MONOTONIC elsewhere for
    internal timers to avoid races

    Fixed #2540 - new zmq_poller used by zmq_poll without DRAFTs

    ๐Ÿ›  Fixed #2552 - Fix WITH_DOC CMake build to avoid checking for asciidoc if the
    option is disabled

    ๐Ÿ›  Fixed #2567 - Memory leak in REP socket handling

    ๐Ÿ›  Fixed #2579 - Compilation issue on Windows with CMake + ninja

    ๐Ÿ›  Fixed #2588 - SIGBUS under 64-bit SunOS Sparc

    Fixed #2590 - crash when using ZMQ_IMMEDIATE and ZMQ_LINGER to non-zero

    ๐Ÿ›  Fixed #2601 - XPUB_MANUAL subscriptions not removed on peer term

    ๐Ÿ›  Fixed #2602 - intermittent memory leak for ZMQ_REQ/REP send/recv

    ๐Ÿ›  Fixed #2608 - CURVE server (connect) fails when client rebinds

    ๐Ÿ›  Fixed #2610 - print backtraces in mutual exclusion to avoid mixing
    different traces

    ๐Ÿ›  Fixed #2621 - add missing CMake files to distributable tarball

    ๐Ÿ›  Fixed #2630 - improve compatibility with OpenBSD w.r.t. IPV6_V6ONLY

    ๐Ÿ›  Fixed #2638 - note in INSTALL that when using Windows builds on Linux with
    Wine it is necessary to increase the minimum TCP buffers

    ๐Ÿ›  Fixed #2632 - Fix file descriptor leak when using Tweetnacl (internal NACL
    implementation) instead of Libsodium, and fix race condition when using
    multiple ZMQ contexts with Tweetnacl

    ๐Ÿ›  Fixed #2681 - Possible buffer overflow in CURVE mechanism handshake.
    ๐Ÿ”’ NOTE: this was protected by an assert previously, so there is no security
    risk.

    Fixed #2704 - test_sockopt_hwm fails occasionally on Windows

    ๐Ÿ›  Fixed #2701 - pgm build via cmake doesn't link libzmq with libpgm

    ๐Ÿ›  Fixed #2711 - ZAP handler communication errors should be handled consistently

    Fixed #2723 - assertion in src\select.cpp:111 or hang on zmq_ctx_destroy on
    ๐Ÿ Windows

    ๐Ÿ›  Fixed #2728 - fix support O_CLOEXEC when building with CMake

    ๐Ÿ›  Fixed #2761 - improve compatibility with TrueOS (FreeBSD 12)

    ๐Ÿ›  Fixed #2764 - do not unlink IPC socket files when closing a socket to avoid
    race conditions

    ๐Ÿ›  Fixed #2770 - support lcov 1.13 and newer

    Fixed #2787 - add libiphlpapi to PKGCFG_LIBS_PRIVATE for static mingw builds

    ๐Ÿ›  Fixed #2788 - document that adding -DZMQ_STATIC is required for Windows
    ๐Ÿ— static builds with Mingw

    Fixed #2789 - description of zmq_atomic_counter_value return value is cloned
    from zmq_atomic_counter_new

    ๐Ÿ›  Fixed #2791 - fix building with DRAFT APIs on CentOS 6

    ๐Ÿ›  Fixed #2794 - router_t methods should not allocate memory for lookup in
    outpipes

    ๐Ÿ›  Fixed #2809 - optimize select() usage on Windows

    ๐Ÿ›  Fixed #2816 - add CMake and autoconf check for accept4, as it is not
    ๐Ÿš€ available on old Linux releases, and fallback to accept + FD_CLOEXEC

    Fixed #2824 - ZMQ_REQ socket does not report ZMQ_POLLOUT when ZMQ_REQ_RELAXED
    is set

    ๐Ÿ›  Fixed #2827 - add support for Haiku

    ๐Ÿ›  Fixed #2840 - fix building with VS2008

    ๐Ÿ›  Fixed #2845 - correct the ZMQ_LINGER documentation to accurately reflect that
    ๐Ÿš€ the default value is -1 (infinite). It never was 30 second in any released
    ๐Ÿ”– version, it was only changed briefly and then changed back, but the manpage
    โช was not reverted.

    ๐Ÿ›  Fixed #2861 - CMake/MSVC: export ZMQ_STATIC when needed.