summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2007-02-09 13:52:00 +0000
committerGordon Sim <gsim@apache.org>2007-02-09 13:52:00 +0000
commit33d02c5cbe67fb113e1b0f3b370dae4e3a211b6d (patch)
treead2210fb3a0df88299225988e3818fed927c62cb
parent521b63e9ad416df5cd98c65aa0246efbc24b7503 (diff)
downloadqpid-python-33d02c5cbe67fb113e1b0f3b370dae4e3a211b6d.tar.gz
Fix to close connection when issuing a connection exception (ideally would wait a short while before doing so, but this is better than nothing for now).
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/qpid.0-9@505291 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--cpp/lib/broker/BrokerChannel.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/cpp/lib/broker/BrokerChannel.cpp b/cpp/lib/broker/BrokerChannel.cpp
index cae48273ff..0d867d0cf3 100644
--- a/cpp/lib/broker/BrokerChannel.cpp
+++ b/cpp/lib/broker/BrokerChannel.cpp
@@ -330,10 +330,12 @@ void Channel::handleMethodInContext(
connection.client->getConnection().close(
context, e.code, e.toString(),
method->amqpClassId(), method->amqpMethodId());
+ connection.getOutput().close();
}catch(std::exception& e){
connection.client->getConnection().close(
context, 541/*internal error*/, e.what(),
method->amqpClassId(), method->amqpMethodId());
+ connection.getOutput().close();
}
}