[zeromq-dev] Breaking blocking in a server app

Pieter Hintjens ph at imatix.com
Wed Jun 30 17:12:11 CEST 2010

On Wed, Jun 30, 2010 at 4:23 PM, Derek Developer
<derekdeveloper at yahoo.com> wrote:
> Is there any way to break the blocking of zmq_recv() without firing up a client and sending a message like "QUIT SERVER"?

You can destroy the context object from another thread, that will
cause all blocking calls to return.  You will need to either shutdown
then, or create a new context and new sockets.


More information about the zeromq-dev mailing list