[zeromq-dev] Issue 85 & 92
Pieter Hintjens
ph at imatix.com
Tue Oct 26 19:30:36 CEST 2010
On Tue, Oct 26, 2010 at 6:30 PM, <ntupel at googlemail.com> wrote:
> Assuming A == T1, then it can not close its socket, because it is
> stuck in zmq_recv. The decision to terminate is coming from T2. How
> should T1 know that it should close its socket? And when T2 calls
> zmq_term, T1 is already blocked in zmq_recv, so it doesn't get ETERM.
> To me it looks like it is actually impossible to cleanly terminate my
> application.
zmq_recv should return with ETERM if another thread calls zmq_term.
Issue 92 really only affects a programs that lazily doesn't close its
sockets, and then calls zmq_term.
-Pieter
More information about the zeromq-dev
mailing list