summaryrefslogtreecommitdiff
path: root/cpp/lib/broker/SessionHandlerImpl.cpp
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2007-01-18 08:11:12 +0000
committerGordon Sim <gsim@apache.org>2007-01-18 08:11:12 +0000
commitd81e5cad26f060b64501448d97ae5b6c821dce08 (patch)
tree97ba90c00330d32285a0edf2a7da359a8063416d /cpp/lib/broker/SessionHandlerImpl.cpp
parent24bef7f59bc9f1b25f74403f47a722c6f35841c4 (diff)
downloadqpid-python-d81e5cad26f060b64501448d97ae5b6c821dce08.tar.gz
Close connection when connection.close is sent to client.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@497341 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/lib/broker/SessionHandlerImpl.cpp')
-rw-r--r--cpp/lib/broker/SessionHandlerImpl.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/cpp/lib/broker/SessionHandlerImpl.cpp b/cpp/lib/broker/SessionHandlerImpl.cpp
index 5ebc8c3709..da49a94d68 100644
--- a/cpp/lib/broker/SessionHandlerImpl.cpp
+++ b/cpp/lib/broker/SessionHandlerImpl.cpp
@@ -105,9 +105,11 @@ void SessionHandlerImpl::received(qpid::framing::AMQFrame* frame){
client->getChannel().close(channel, e.code, e.text, method->amqpClassId(), method->amqpMethodId());
}catch(ConnectionException& e){
client->getConnection().close(0, e.code, e.text, method->amqpClassId(), method->amqpMethodId());
+ context->close();
}catch(std::exception& e){
string error(e.what());
client->getConnection().close(0, 541/*internal error*/, error, method->amqpClassId(), method->amqpMethodId());
+ context->close();
}
break;