mirror of
https://github.com/zeromq/cppzmq.git
synced 2025-04-27 02:16:19 +02:00

Until now, we only assigned the _handle on `zmq::socket_t::operator=(socket_t&&)`. This manifests when trying to monitor a socket initialized by that constructor. To avoid changing the public interface of the socket_t class, we tested for the specific monitor usecase, since it's the only class accessing zmq::socke_t::ctxptr. NOTE: When running the new unit-test without the fix, it might hang on `zmq_socket_monitor(socket_, NULL, 0)`. We haven't figured out the cause for that, but we deemed it unimportant (or at least out of scope).