[zeromq-dev] multipart messages not atomic but mixed

Tobias Hintze th-0mq-jeuw at thzn.de
Fri Apr 29 20:58:27 CEST 2011


as proposed i translated this into a pure c testcase.

please find that version at http://thzn.de/0mq-mp-mix-pure-c/

and also referenced in #199:
https://github.com/zeromq/libzmq/issues/199

same issues. (also with 2.1.6)

th
--

----- Original Message -----
> > Thanks for this error report. Can you please log an issue at the
> > github libzmq issue tracker as well, and link to your testcase.
> 
> this is #199 now.
> 
> th
> --
> 
> >
> > -Pieter
> >
> > On Thu, Apr 21, 2011 at 2:48 PM, Tobias Hintze <th-0mq-jeuw at thzn.de>
> > wrote:
> > > hi,
> > >
> > > under heavy load i see multipart message coming in intermixed.
> > >
> > > this happens with a XREP/XREQ combination.
> > >
> > > i reduced this to a testcase:
> > >
> > > http://thzn.de/0mq-mp-mix/
> > >
> > > there is a server.cc and a stress.cc - each part of a multipart
> > > message is prefixed when sending. and the receiving side checks
> > > that
> > > all parts of the received mp-message have the same prefix. which
> > > fails.
> > >
> > > there is also a output.txt where you can see how message-parts
> > > come
> > > in.
> > > every line is prefixed with the hex-representation of the identity
> > > received on the XREP side (first part).
> > >
> > > this happens on 2.1.4 and on 2.1 branch in git from yesterday.
> > >

-- 
Tobias Hintze



More information about the zeromq-dev mailing list