summaryrefslogtreecommitdiff
path: root/qpid/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
commitc034505762a27b3ac172ab474d6c3a97bc84210a (patch)
tree9d29573dda493e26c74e2339a154068a160c72e3 /qpid/cpp/src
parentbf4878d834c41c4c6b90fa8ff327623a82495340 (diff)
downloadqpid-python-c034505762a27b3ac172ab474d6c3a97bc84210a.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@1360214 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src')
-rw-r--r--qpid/cpp/src/qpid/cluster/Connection.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/qpid/cpp/src/qpid/cluster/Connection.cpp b/qpid/cpp/src/qpid/cluster/Connection.cpp
index de9e5b3ba0..ff855eef18 100644
--- a/qpid/cpp/src/qpid/cluster/Connection.cpp
+++ b/qpid/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) {