summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/client/RdmaConnector.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
commit60354752d0cedeec47709332e5e3324a23390952 (patch)
tree927186c6289cd491ef7f50dec576bf380ee5ba18 /cpp/src/qpid/client/RdmaConnector.cpp
parent5657e0fa17c3f0ec94b97dfac664153db8a74bd5 (diff)
downloadqpid-python-60354752d0cedeec47709332e5e3324a23390952.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/src/qpid/client/RdmaConnector.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;
}