[zeromq-dev] shutdown mutex issue with 2.10

Oliver Smith oliver at kfs.org
Thu Oct 14 17:20:12 CEST 2010


  On 10/14/2010 1:33 AM, Martin Sustrik wrote:
> It's a different scenario. Oliver has a pending message that waits to be
> sent.
>
> Issue 85 has to do with a socket that haven't been closed.
Hmm - well, in that case, my attempt to duplicate the issue I'm having 
failed.

The origin of my problem is that my unit tests are randomly hanging 
after exit. All of my sends and receives are very carefully matched, or 
else the unit tests themselves would fail.

How do I cancel all pending, outgoing messages?

If there is no way to do this, then ZeroMQ 2.1 is essentially /broken/ 
for everything except 'C' since the application will hang outside of the 
programmer's control (above main()). And you've created a situation 
where flow control is impossible; if I'm communicating with a thread 
that crashes or tells me it's shutting down, well it's already too late 
- I already put stuff on the send queue.

- Oliver




More information about the zeromq-dev mailing list