forked from zeromq/cppzmq
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bugfix: socket_t move assignment doesn't initialize ctxptr
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).
- Loading branch information
Showing
2 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters