On Fri, May 20, 2011 at 6:58 PM, Martin Sustrik <[email protected]> wrote:

> However, this doesn't work if one thread closes the socket and other
> thread tries to access it afterwards.

Indeed, and this particular scenario is the one that causes this
assert in mailbox.cpp.

People do also try to actively recv/send from the same socket in
multiple threads but less often, by experience. However, trying to
close all sockets from one place seems a regular thing. I've hit
exactly the same fault myself trying to manage sockets automatically
in czmq.

Anyone else have an opinion on handling these asserts more "nicely"?

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

Reply via email to