From 818d122d78e4b3bc55fdc376b43e15841b2e2006 Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Tue, 20 Mar 2012 15:31:01 +0100 Subject: Send identities on reconnect When reconnection happened, identity was not resent to the peer. Fixed. Signed-off-by: Martin Sustrik --- src/session_base.hpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/session_base.hpp') diff --git a/src/session_base.hpp b/src/session_base.hpp index 8b0d019..47da8c2 100644 --- a/src/session_base.hpp +++ b/src/session_base.hpp @@ -118,10 +118,18 @@ namespace xs // the engines into the same thread. xs::io_thread_t *io_thread; - // If true, identity is to be sent/recvd from the network. + // If true, identity is to be sent to the network. bool send_identity; + + // If true, identity was already sent to the current connection. + bool identity_sent; + + // If true, identity is to be received from the network. bool recv_identity; + // If true, identity was already received from the current connection. + bool identity_recvd; + // Protocol and address to use when connecting. std::string protocol; std::string address; -- cgit v1.2.3