[zeromq-dev] use 0mq only in one side?

Martin Sustrik sustrik at 250bpm.com
Mon Sep 26 14:12:22 CEST 2011


On 09/23/2011 03:45 AM, alias wrote:

> by the way, when I read source, I find that pipe_t::flush() may has bug:
> && --> ||
>
> void zmq::pipe_t::flush ()
> {
> // If terminate() was already called do nothing.
> if (state == terminated && state == double_terminated) *//! *should *if
> (state==terminated || state==double_terminated)* ???
> return;

Yes, it's obviously a typo. However, fixing it breaks the tests. I'll 
have to investigate in more depth.

Thanks for reporting the suspicious code!
Martin



More information about the zeromq-dev mailing list