[zeromq-dev] zmq::context_t fails to exit, stuck in infinite loop waiting dezombify()

Proemial proemial at gmail.com
Sat Dec 11 14:38:06 CET 2010


Ah, perfect!  I knew I must have forgotten something.

It now runs clean, thank you very much!

Martin

On Sat, Dec 11, 2010 at 2:42 AM, Martin Sustrik <sustrik at 250bpm.com> wrote:
> Hi Martin,
>
>> In my initial test case, I queue up a random assortment of messages
>> and publish them, without having connected any subscribers.  This
>> continues for a short period, before I signal the publishing thread to
>> shutdown.  both zmq::context_t and zmq::socket_t are in the local
>> scope, and are auto destroyed when scope exits.
>
> 0MQ is trying to send the messages, but there's noone to receive them.
>
> To make it exit immediately, droping any outstanding messages, set the
> socket option ZMQ_LINGER to zero.
>
> Martin
>



-- 
---
This is a signature.



More information about the zeromq-dev mailing list