diff options
| author | Andrew Stitcher <astitcher@apache.org> | 2010-09-08 16:49:37 +0000 |
|---|---|---|
| committer | Andrew Stitcher <astitcher@apache.org> | 2010-09-08 16:49:37 +0000 |
| commit | 7e0e181772e31e13024c5dea4c1094ffd155c002 (patch) | |
| tree | a10f56add1b02275fc247d29f82f649a91bbb5b1 /cpp/src/qpid/sys/rdma | |
| parent | 693c2a2f4fed5545b14250b3a841f1b687809c57 (diff) | |
| download | qpid-python-7e0e181772e31e13024c5dea4c1094ffd155c002.tar.gz | |
Only delete Rdma server side connections when the client disconnects -
this avoids a race between the disconnect event and deleting the connection
upon closing.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@995141 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/sys/rdma')
| -rw-r--r-- | cpp/src/qpid/sys/rdma/rdma_wrap.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cpp/src/qpid/sys/rdma/rdma_wrap.h b/cpp/src/qpid/sys/rdma/rdma_wrap.h index 51cf6864be..1d72abcd03 100644 --- a/cpp/src/qpid/sys/rdma/rdma_wrap.h +++ b/cpp/src/qpid/sys/rdma/rdma_wrap.h @@ -225,6 +225,10 @@ namespace Rdma { context = c; } + void removeContext() { + context = 0; + } + template <typename T> T* getContext() { return static_cast<T*>(context); |
