[zeromq-dev] Fwd: Re: [GitHub] Send&Receive is broken in v2.1.5?

Martin Sustrik sustrik at 250bpm.com
Wed Apr 20 18:32:10 CEST 2011


On 04/20/2011 05:02 PM, arodygin wrote:

> 1. Just like Martin has wrote, in a valid message all bits that are
> not flags are set. In this case "zmq_msg_init", zmq_msg_init_data",
> and "zmq_msg_init_size" should set these bits, while they are
> remained clear.

You are right. It looks like the patch is incorrectly backported.

The original patch (581697695aac72894f2d) does the right thing:

-        msg_->flags = 0;
+        msg_->flags = (unsigned char) ~ZMQ_MSG_MASK;

Pieter, can you have a look at this?

Thanks.
Martin



More information about the zeromq-dev mailing list