From 9c12f89c6ee28f2741e288b6155bc900ef1c4f05 Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Wed, 21 Oct 2009 17:03:33 +0000 Subject: Fix problems with sessions going out of scope and session numbers wrapping around. Fixes QPID-1789: sessions that go out of scope without being detached will detach themselves. Also fixes several issues that arise when the session numbers wraps around and start re-using old numbers. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@828108 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/cluster/UpdateClient.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'cpp/src/qpid/cluster') diff --git a/cpp/src/qpid/cluster/UpdateClient.cpp b/cpp/src/qpid/cluster/UpdateClient.cpp index d6df8bd5ac..a9761962e8 100644 --- a/cpp/src/qpid/cluster/UpdateClient.cpp +++ b/cpp/src/qpid/cluster/UpdateClient.cpp @@ -313,6 +313,7 @@ void UpdateClient::updateSession(broker::SessionHandler& sh) { // Create a client session to update session state. boost::shared_ptr cimpl = client::ConnectionAccess::getImpl(shadowConnection); boost::shared_ptr simpl = cimpl->newSession(ss->getId().getName(), ss->getTimeout(), sh.getChannel()); + simpl->disableAutoDetach(); client::SessionBase_0_10Access(shadowSession).set(simpl); AMQP_AllProxy::ClusterConnection proxy(simpl->out); -- cgit v1.2.1