diff options
author | Alan Conway <aconway@apache.org> | 2009-10-21 17:03:33 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2009-10-21 17:03:33 +0000 |
commit | 9c12f89c6ee28f2741e288b6155bc900ef1c4f05 (patch) | |
tree | 2fa86b352e831781245f4c27092bad77dcff2aa0 /cpp/src/qpid/client/SessionImpl.h | |
parent | 4214ec3e632be1f9a8cb1553280c5948fa9161bb (diff) | |
download | qpid-python-9c12f89c6ee28f2741e288b6155bc900ef1c4f05.tar.gz |
Fix problems with sessions going out of scope and session numbers wrapping around.
Fixes QPID-1789: sessions that go out of scope without being detached will
detach themselves.
Also fixes several issues that arise when the session numbers wraps around
and start re-using old numbers.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@828108 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/client/SessionImpl.h')
-rw-r--r-- | cpp/src/qpid/client/SessionImpl.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cpp/src/qpid/client/SessionImpl.h b/cpp/src/qpid/client/SessionImpl.h index 0624bb8b3c..cbd0742045 100644 --- a/cpp/src/qpid/client/SessionImpl.h +++ b/cpp/src/qpid/client/SessionImpl.h @@ -132,6 +132,9 @@ public: void setDoClearDeliveryPropertiesExchange(bool b=true) { doClearDeliveryPropertiesExchange = b; } + /** Suppress sending detach in destructor. Used by cluster to build session state */ + void disableAutoDetach(); + private: enum State { INACTIVE, @@ -247,6 +250,8 @@ private: bool doClearDeliveryPropertiesExchange; + bool autoDetach; + friend class client::SessionHandler; }; |