[zeromq-dev] ROUTER sockets and IDENTITY

Mark Barbisan Mark.Barbisan at evault.com
Thu Jun 27 16:20:48 CEST 2013


Hello,

ZeroMQ supports multiple NICs for its sockets. If a client gets disconnected with queued messages, it will automatically try to reconnect with the other available NICs. However, there is a problem if the client has set its socket identity (using ZMQ_IDENTITY). The identity does not change upon reconnect. A server with a ROUTER socket that receives the new client's connection will see the same ZMQ_IDENTITY again. However, since the new incoming connection uses a different address (due to a different NIC) but has the same identity, the ROUTER socket will automatically place it into a list of "anonymous" connections. The client has no way of receiving responses. 

Does ZeroMQ provide a facility to reassign identities for the clients of ROUTER sockets?

Thanks,

- Mark.



More information about the zeromq-dev mailing list