[zeromq-dev] partial multipart message?

Colin Surprenant colin.surprenant at gmail.com
Wed Apr 13 23:37:54 CEST 2011


Hi,

Yes, I wrote this pub/sub gist to demonstrate: https://gist.github.com/918471

Again, this is with 0MQ 2.1.3, JRuby 1.6.0, FFI ruby bindings ffi-rzmq
(0.7.2) on OSX.

Colin

On Wed, Apr 13, 2011 at 4:09 PM, Martin Sustrik <sustrik at 250bpm.com> wrote:
> Hi Colin,
>
>> I am using 0mq 2.1.3 with the FFI ruby bindings ffi-rzmq (0.7.2) with
>> JRuby 1.6.0.
>>
>> When doing some stress testing using PUB/SUB sockets with multipart
>> (3) messages at different watermark levels and message rates I
>> encountered a situation, at high rate and low watermark, where not
>> only some messages were being dropped as expected, but some rare
>> messages did not have all the parts. Only the last part, the actual
>> message body, was in the message.
>>
>> Per the documentation<<ØMQ sends and receives them atomically, i.e.
>> you get a whole message, or you don't get it at all.>>
>>
>> I am trying to figure how this could have happened. Is this atomicity
>> semantic also respected when dropping messages? (high rate + low
>> watermark).
>
> Yes. It should be.
>
>> I assume it should. If it is, where is the most plausible
>> origin of the problem? a 0mq bug, a library bug?
>
> Looks like a 0mq bug. Are you able to reproduce it?
>
> Martin
>



More information about the zeromq-dev mailing list