From 130dfc5b5f0ecf23e80be16fcd307dad7e649fd7 Mon Sep 17 00:00:00 2001 From: Martin Hurton Date: Mon, 28 May 2012 17:02:08 +0200 Subject: [PATCH] Fix issue #369 The bug was that after reconnect, the session did not handle identity messages properly. --- src/session_base.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/session_base.cpp b/src/session_base.cpp index c13308aa..7da0517f 100644 --- a/src/session_base.cpp +++ b/src/session_base.cpp @@ -387,6 +387,10 @@ void zmq::session_base_t::detached () return; } + // Restore identity flags. + send_identity = options.send_identity; + recv_identity = options.recv_identity; + // Reconnect. if (options.reconnect_ivl != -1) start_connecting (true);