summaryrefslogtreecommitdiff
path: root/cpp
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
commite6a0b5e22a0c2cc21578e27828cfb0181024a0cb (patch)
tree927186c6289cd491ef7f50dec576bf380ee5ba18 /cpp
parent451296120a105b6f19415d02444731eb0989b355 (diff)
downloadqpid-python-e6a0b5e22a0c2cc21578e27828cfb0181024a0cb.tar.gz
Deallocate rdma state when closing an rdma connection
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@911209 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp')
-rw-r--r--cpp/src/qpid/client/RdmaConnector.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/cpp/src/qpid/client/RdmaConnector.cpp b/cpp/src/qpid/client/RdmaConnector.cpp
index fbf4e02f69..2bdfb8d68f 100644
--- a/cpp/src/qpid/client/RdmaConnector.cpp
+++ b/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;
}