Relative Content

Tag Archive for c++czeromqczmq

Why does ZMQ context close blocks forever?

I have the following code snippet. There the context.close() blocks forever. Does anyone have a hint on how to fix this? I suspect this is happening because I send a message but never receive an answer, as the close() doesn’t block if I do get a response. The question is, what if I don’t get a response? How can I close the context in this case without causing a deadlock? I use libzmq 4.3.4 and cppzmq 4.7.1.