[zeromq-dev] XREP/ROUTER no longer receive messages atomically in 3.0/4.0

MinRK benjaminrk at gmail.com
Fri Sep 2 23:37:40 CEST 2011


Hello,

Are multipart messages with routing information (as received by XREP and/or
ROUTER sockets) supposed to arrive atomically?  Because they are not in 3.0
or 4.0.

* In 3.0 ROUTER/DEALER appear to behave the same as 2.1.x
* XREP receives *at least* two distinct (RCVMORE=False in the middle)
messages for every message sent by a peer
* in 4.0, ROUTER behaves in a similar way to XREP, but with a different
number of distinct prefix messages

Is this the desired behavior?

I imagine it could be a simple bug of omitting the RCVMORE flag when
receiving routing prefix messages.

Example (in C) demonstrating failure of atomicity:
https://gist.github.com/1189941

-MinRK
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20110902/681961ac/attachment.htm>


More information about the zeromq-dev mailing list