From 0c99d04db9240f29493a4d774be677dc682547ca Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Tue, 20 Mar 2012 17:37:04 +0100 Subject: Make REQ session state machine aware of reconnections On reconnections, state machine in req_session_t is reset to the initial state. Signed-off-by: Martin Sustrik --- src/req.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/req.cpp') diff --git a/src/req.cpp b/src/req.cpp index 01b35ea..2e0e614 100644 --- a/src/req.cpp +++ b/src/req.cpp @@ -179,3 +179,9 @@ int xs::req_session_t::write (msg_t *msg_) return -1; } +void xs::req_session_t::detach () +{ + state = options.recv_identity ? identity : bottom; + xreq_session_t::detach (); +} + -- cgit v1.2.3