From b7d5c6aee67310f579d8014a15646c6c7486398d Mon Sep 17 00:00:00 2001 From: "Charles E. Rolke" Date: Wed, 11 Jul 2012 14:55:00 +0000 Subject: QPID-4129 Cluster connection leak when auth failure. This patch closes local connection, releases broker::Connection, and fixes ConnectionCounter resource accounting. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1360214 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/cluster/Connection.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cpp/src') diff --git a/cpp/src/qpid/cluster/Connection.cpp b/cpp/src/qpid/cluster/Connection.cpp index de9e5b3ba0..ff855eef18 100644 --- a/cpp/src/qpid/cluster/Connection.cpp +++ b/cpp/src/qpid/cluster/Connection.cpp @@ -277,6 +277,8 @@ void Connection::closed() { if (announced) cluster.getMulticast().mcastControl( ClusterConnectionDeliverCloseBody(), self); + else + close(); } } catch (const std::exception& e) { -- cgit v1.2.1