summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Stitcher <astitcher@apache.org>2010-02-17 22:47:44 +0000
committerAndrew Stitcher <astitcher@apache.org>2010-02-17 22:47:44 +0000
commit655587154f0e45ccbb076a4e900f93afc5c344d2 (patch)
treef01cd0836c35a4b3544ca1f58e85b7b5b2a2cb94
parent8e5d4a7cacf391a6cef4edd181d7ca0a10e92379 (diff)
downloadqpid-python-655587154f0e45ccbb076a4e900f93afc5c344d2.tar.gz
Deallocate rdma state when closing an rdma connection
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@911209 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--qpid/cpp/src/qpid/client/RdmaConnector.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/qpid/cpp/src/qpid/client/RdmaConnector.cpp b/qpid/cpp/src/qpid/client/RdmaConnector.cpp
index fbf4e02f69..2bdfb8d68f 100644
--- a/qpid/cpp/src/qpid/client/RdmaConnector.cpp
+++ b/qpid/cpp/src/qpid/client/RdmaConnector.cpp
@@ -158,6 +158,7 @@ RdmaConnector::RdmaConnector(Poller::shared_ptr p,
RdmaConnector::~RdmaConnector() {
close();
+ if (aio) aio->deferDelete();
}
void RdmaConnector::connect(const std::string& host, int port){
@@ -213,6 +214,9 @@ bool RdmaConnector::closeInternal() {
Mutex::ScopedLock l(pollingLock);
bool ret = polling;
polling = false;
+ if (ret) {
+ if (aio) aio->queueWriteClose();
+ }
return ret;
}