[zeromq-dev] Duplicate identities - #325

Pieter Hintjens ph at imatix.com
Fri Mar 23 23:45:18 CET 2012


Hi all,

I've just made a pull request for a fix for issue #325
(https://zeromq.jira.com/browse/LIBZMQ-325) which caused libzmq to
crash if two clients connected to a ROUTER or REP socket with the same
identity.

My fix is to allow this (and not assert!) so that the second client's
identity request will be ignored. This means a well-behaving client
and server can't be disturbed by an incorrect or hostile client.

Please review at https://github.com/zeromq/libzmq/pull/290.

This assert doesn't affect 2.1 as far as I can tell.

-Pieter



More information about the zeromq-dev mailing list