[zeromq-dev] Recv hangs
Martin Sustrik
sustrik at 250bpm.com
Sun Oct 31 20:29:01 CET 2010
On 10/31/2010 08:00 PM, Cliff Stanford wrote:
> The problem I am encountering is that I have a background worker thread
> which calls socket.Recv and is expected to hang, waiting for a command.
> At program termination, this thread should terminate (IsBackground is
> true on the managed thread).
>
> However, the thread fails to terminate and thus the program fails to
> terminate, requiring a kill -KILL. The thread is actually hanging
> inside libzmq.dll.
If you call zmq_term from another thread, the thread stuck in recv
should exit with ETERM error. If that doesn't happen, it's a bug.
Martin
More information about the zeromq-dev
mailing list