summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
authorCharles E. Rolke <chug@apache.org>2012-07-11 14:55:00 +0000
committerCharles E. Rolke <chug@apache.org>2012-07-11 14:55:00 +0000
commitb7d5c6aee67310f579d8014a15646c6c7486398d (patch)
tree846183d1c26c80c3bc5a03bb5a02ecc6cc26bc35 /cpp/src
parenta9e20f67faf73ca218aaeab1a5a0fc9f98d42755 (diff)
downloadqpid-python-b7d5c6aee67310f579d8014a15646c6c7486398d.tar.gz
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
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/qpid/cluster/Connection.cpp2
1 files changed, 2 insertions, 0 deletions
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) {