[zeromq-dev] Breaking blocking in a server app

Brian Granger ellisonbg at gmail.com
Wed Jun 30 19:44:24 CEST 2010

On Wed, Jun 30, 2010 at 10:12 AM, Pieter Hintjens <ph at imatix.com> wrote:
> 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"?

This is an issue we are dealing with as well.

> 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.

Is this part of the official API, or just something that happens to
work?  Because this is a subtle issue, if it is part of the API, we
may want to mention it in the docs.



> -Pieter
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Brian E. Granger, Ph.D.
Assistant Professor of Physics
Cal Poly State University, San Luis Obispo
bgranger at calpoly.edu
ellisonbg at gmail.com

More information about the zeromq-dev mailing list