[zeromq-dev] thread-safe calls?

Chuck Remes cremes.devlist at mac.com
Sat Aug 28 19:34:05 CEST 2010


I opened a ticket for a problem I have noticed since 2.0.7 that persists in 2.0.8.

http://www.greenpasture.org/community/?q=node/290

I am wondering if I am misusing the framework. Briefly, the crash occurs when calling zmq_close from another thread on a socket that is blocked on send/recv. It sometimes asserts on object.cpp line 342, sometimes hangs, sometimes segfaults, etc.

I thought it would be safe to call zmq_close on sockets in other threads since calling zmq_term can safely do so. Am I wrong? If so, what is a safe way to signal a blocked socket so it can cleanly shut itself down (without calling zmq_term)?

cr




More information about the zeromq-dev mailing list