diff options
| author | Michael Goulish <mgoulish@apache.org> | 2011-12-16 13:40:58 +0000 |
|---|---|---|
| committer | Michael Goulish <mgoulish@apache.org> | 2011-12-16 13:40:58 +0000 |
| commit | d9ff8e43999e4c59d4092064a6e2c80773534864 (patch) | |
| tree | 9f798f3b1004e28be4a2352877fc38a0eef94a2c /cpp/src/qpid/cluster/Cluster.cpp | |
| parent | 2f56ee691a7a824d641820005f0cc7e99ec96d8f (diff) | |
| download | qpid-python-d9ff8e43999e4c59d4092064a6e2c80773534864.tar.gz | |
QPID-3438
fix cluster causing cnx leak when bad credentials are given in login attempt.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1215127 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/cluster/Cluster.cpp')
| -rw-r--r-- | cpp/src/qpid/cluster/Cluster.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/cpp/src/qpid/cluster/Cluster.cpp b/cpp/src/qpid/cluster/Cluster.cpp index 40bfcd9285..3c1d23c842 100644 --- a/cpp/src/qpid/cluster/Cluster.cpp +++ b/cpp/src/qpid/cluster/Cluster.cpp @@ -383,12 +383,21 @@ void Cluster::erase(const ConnectionId& id) { erase(id,l); } +void Cluster::eraseLocal(const ConnectionId& id) { + Lock l(lock); + eraseLocal(id,l); +} + // Called by Connection::deliverClose() in deliverFrameQueue thread. void Cluster::erase(const ConnectionId& id, Lock&) { connections.erase(id); decoder.erase(id); } +void Cluster::eraseLocal(const ConnectionId& id, Lock&) { + localConnections.getErase(id); +} + std::vector<string> Cluster::getIds() const { Lock l(lock); return getIds(l); |
