Duplicate identities not checked with zmq_connect

Description

When duplicate identity appears at bound socket, the connection is rejected – as it should be.

However, if the connection is created by zmq_connect() rather than zmq_bind(), the duplicity is not checked and both connections are allowed to exist in parallel.

That in turn causes XREP socket to fail because of duplicit entry in the map of peers.

Minimal test case can be found here:

https://gist.github.com/863307

Environment

None

Status

Assignee

Unassigned

Reporter

Martin Sustrik

Labels

None

Priority