[zeromq-dev] Cannot understand multipart identity

Pieter Hintjens ph at imatix.com
Sun Jul 13 12:52:13 CEST 2014


This isn't normal, so do some sanity checks. First, check the "more"
property on all frames and make sure that first frame that you assume
is an address really is an address, not something left over from a
previous message. Second, provide us a complete test case we can try,
with client and server in two threads in one process. Third, inspect
the frames, see what they contain. ROUTER identities are 5 bytes (null
+ 4 bytes).

On Sun, Jul 13, 2014 at 10:18 AM, Andrzej Jackowski
<andrzejjac at gmail.com> wrote:
> Hi,
>
> I'm using ZMQ 3 on Linux and I cannot understand behaviour of my code. I
> have two applications connected with ZMQ's IPC. Client makes REQ socket and
> connect to it and server makes ROUTER socket and bind to it. Then Client
> send message to the REQ socket. According to ZMQ guide ROUTER should receive
> 3 messages (identity, empty, content), but actually it gets 4 messages (2
> frames of identity, empty and content). I've read ZMQ guide and ROUTER
> socket code and I still don't get why there is this strange multipart
> identity message.
>
> This is part of my code:
> http://pastebin.com/MWySYm2C
>
> Could anyone explain it to me?
>
> Greetings,
> Andrze
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>



More information about the zeromq-dev mailing list