[zeromq-dev] ZMQ router-dealer set-up: can old socket identities be recycled? ("inproc")

Kah-Chan Low kahchanlow at yahoo.com
Fri Nov 23 00:08:48 CET 2012

Thanks Peter.
I tried both versions 2x and 3x.  Both have problems if socket identities are explicitly assigned and then re-used.  I stopped the explicit assignment and everything is working fine now!

 From: Pieter Hintjens <ph at imatix.com>
To: Kah-Chan Low <kahchanlow at yahoo.com>; ZeroMQ development list <zeromq-dev at lists.zeromq.org> 
Cc: Apostolis Xekoukoulotakis <xekoukou at gmail.com> 
Sent: Tuesday, November 13, 2012 12:32 AM
Subject: Re: [zeromq-dev] ZMQ router-dealer set-up: can old socket identities be recycled? ("inproc")
On Tue, Nov 13, 2012 at 5:45 AM, Kah-Chan Low <kahchanlow at yahoo.com> wrote:

> Meanwhile I re-read the man page for ZMQ_IDENTITY and the following is now
> making more sense:

... what version of 0MQ are you using? In 3.x we removed this
'durable' aspect of identities because it was nasty in many ways and
really not the job of libzmq.

In 3.2, what identities do, and only for ROUTER sockets, is identify
the peer in some way other than "anonymous". It's up to the ROUTER
server what to do with this. Reusing identities is bound to create
problems unless it's your explicit intent.

I've been removing identity examples from the Guide because they're
misleading. In fact there are only three cases I see for them:

1. debugging, where you want to print something other than a random number
2. server-side persistence, where you want to manage some resources,
yourself, based on real peer identity
3. router-to-router connection, as in the Freelance pattern, where
this is the only way to inter-connect.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20121122/5ce31599/attachment.htm>

More information about the zeromq-dev mailing list