When a peer reconnects, the router socket receives an identity
message containing this peer id. When this happens, the current
implementation crashes.

This patch makes a router socket to silently ignore all identity
messages coming from reconnected peers.
This commit is contained in:
Martin Hurton
2012-07-31 16:31:41 +02:00
parent 84560c1607
commit 9fab9937e5
3 changed files with 25 additions and 8 deletions

View File

@@ -69,6 +69,7 @@ namespace zmq
unsigned char flags ();
void set_flags (unsigned char flags_);
void reset_flags (unsigned char flags_);
bool is_identity () const;
bool is_delimiter ();
bool is_vsm ();