depends: `ZMQ_TCP_KEEPALIVE` is silently compiled out of `libzmq` in cross builds, including release binaries #37021

issue hebasto opened this issue on November 30, 2026
  1. hebasto commented at 1:50 PM on November 30, 2026: member

    From zmq.md:

    The ZMQ_PUB socket's ZMQ_TCP_KEEPALIVE option is enabled. This means that the underlying SO_KEEPALIVE option is enabled when using a TCP transport. The effective TCP keepalive values are managed through the underlying operating system configuration and must be configured prior to connection establishment.

    That is not the case when libzmq is cross-compiled for a non-Windows host. Its build system skips the SO_KEEPALIVE check, so the code that sets the option is compiled out.

    Guix scripts treat every release build as a cross build. Therefore, the Linux and macOS release binaries do not enable SO_KEEPALIVE either.

  2. hebasto added the label RPC/REST/ZMQ on Nov 30, 2026
  3. hebasto added the label Build system on Nov 30, 2026
Contributors

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-12-05 03:51 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me