On Sat, Jun 21, 2014 at 6:19 PM, Paulmichael Blasucci
<[email protected]> wrote:

> So, after 3 years of putting ZMQ in production, I'm worried I may be
> operating under mistaken assumptions. In the guide (and in my code), there
> is a fairly consistent pattern:

Indeed, and this is the only safe way to do it. libzmq doesn't shut
down properly if there are operations pending (connects or sends), and
the cleanest way to cancel all these is to set linger to 0 on all
sockets, then close them, before shutting down the context. It's quite
clean semantically too. Some bindings like CZMQ hide this and do it
automatically for applications.

-Pieter
_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to