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/Connection.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/Connection.cpp')
| -rw-r--r-- | cpp/src/qpid/cluster/Connection.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/cpp/src/qpid/cluster/Connection.cpp b/cpp/src/qpid/cluster/Connection.cpp index 17fcf6deb5..88a2806877 100644 --- a/cpp/src/qpid/cluster/Connection.cpp +++ b/cpp/src/qpid/cluster/Connection.cpp @@ -738,8 +738,13 @@ void Connection::sessionError(uint16_t , const std::string& msg) { void Connection::connectionError(const std::string& msg) { // Ignore errors before isOpen(), we're not multicasting yet. - if (connection->isOpen()) + if (connection->isOpen()) { cluster.flagError(*this, ERROR_TYPE_CONNECTION, msg); + } + else + if ( connection->securityFailure() ) { + cluster.eraseLocal(self); + } } void Connection::addQueueListener(const std::string& q, uint32_t listener) { |
