Skip to content

Ignore ENOENT during zmq_disconnect call (fixes #514)

A change in ZMQ 4.2.3 breaks one of Tango tests (cxx_stateless_subscription, see #514 (closed) for details).

Since zeromq/libzmq@edb4ca1023ff9001b545e827b227402b76a2b55d, peer disconnection triggers zmq_disconnect on a zmq socket. Further zmq_disconnect calls for such socket and endpoint will fail with errno set to ENOENT. This patch silently ignores such failure.

I'm not adding any new testcases. I don't think it is possible to have a reliable reproduction with ZMQ older than v4.2.3.

Merge request reports