[zeromq-dev] Breaking blocking in a server app

Brian Granger ellisonbg at gmail.com
Thu Jul 1 03:05:45 CEST 2010


On Wed, Jun 30, 2010 at 5:27 PM, Matt Weinstein <matt_weinstein at yahoo.com>wrote:

> Under what circumstances do you want to break blocking?
>
> E.g. timeout, connection failure, etc.?
>
>

For us, we want to do this when we want to kill a process that is sitting
there blocking in zmq.recv.  IOW, we want SIGINT to trigger the process to
shutdown in a semi-clean manner (no seg faults!).

Cheers,

Brian


> On Jun 30, 2010, at 10:23 AM, Derek Developer wrote:
>
> Is there any way to break the blocking of zmq_recv() without firing up a
> client and sending a message like "QUIT SERVER"?
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
>
>
> _______________________________________________
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20100630/1cd0c85f/attachment.htm>


More information about the zeromq-dev mailing list