[zeromq-dev] Assertion failure in mailbox.cpp
Jon Gjengset
jon at thesquareplanet.com
Tue May 20 11:08:02 CEST 2014
> > I tried adding a mutex around every call to zmq_close now, and the
> > assertion still fails, so it seems like this is not a close-close race.
> > Since the assertion fail happens in a recv call, it looks more like a
> > close-recv problem?
>
> Another thought: Have you tried setting the linger option in the socket before closing them? CZMQ does this automatically:
>
> https://github.com/zeromq/czmq/blob/c83a0653f63eced4442478796e9375ce38cd174c/src/zctx.c#L338-L349
Just tried setting linger = 0, linger = 5, and linger = 20 before
closing the socket, but neither of them seem to make a difference.
More information about the zeromq-dev
mailing list