[zeromq-dev] zmq_close not return when recieving is active on ZMQ_SUB socket

Martin Sustrik sustrik at 250bpm.com
Mon Nov 8 08:35:48 CET 2010

> I have problem - call zmq_close() does't return when blocking recieve
> is active on ZMQ_SUB socket. 0MQ sources version 2.1 (yesterday from
> git). If I call zmq_term() - recieving drops with error.
> http://pastebin.com/nrHJdXcV (MSVC2005)
0MQ sockets are not thread-safe. You can't recv on a particular socket 
from one thread and call close fro another thread.


More information about the zeromq-dev mailing list