From d81e5cad26f060b64501448d97ae5b6c821dce08 Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Thu, 18 Jan 2007 08:11:12 +0000 Subject: 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 --- cpp/lib/broker/SessionHandlerImpl.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cpp/lib/broker/SessionHandlerImpl.cpp') 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; -- cgit v1.2.1