[zeromq-dev] Adding UUID to ZRE messages

Arnaud Loonstra arnaud at sphaero.org
Fri Nov 7 14:22:28 CET 2014


On 11/07/2014 02:13 PM, Joss Gray wrote:
> Currently ZRE messages are not uniquely identifiable ( AFAIK ) so if you
> receive the same message multiple times, particularly when there are
> multiple network adapters, you can't tell if the same message was sent 3
> times, or received 3 times.
>
> Particularly SHOUT and WHISPER messages. You cant receive more than 1
> valid JOIN messages for a peer in a row without a LEAVE.
>
> I'd like to suggest adding a UUID to the ZRE spec, then add filtering of
> duplicate messages into zyre.
>

The messages are counted to prevent duplicate messages.

I.e.:
https://github.com/zeromq/zyre/blob/master/src/zyre_node.c#L659

Although that method just checks for lost messages...

What can happen is receiving broadcast beacons twice in case zbeacon 
listens and sends on all interfaces.

Rg,

Arnaud
-- 
w: http://www.sphaero.org
t: http://twitter.com/sphaero
g: http://github.com/sphaero
i: freenode: sphaero_z25



More information about the zeromq-dev mailing list