diff options
author | Alan Conway <aconway@apache.org> | 2007-11-01 00:38:58 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2007-11-01 00:38:58 +0000 |
commit | d4838b1db929de6d650b7cdf574c04425c01b38d (patch) | |
tree | d519ff7d639f6f1bca111bc12930abf1da405e67 /cpp/src/qpid/broker/SessionManager.cpp | |
parent | af6457122a32f1f5a0224fc54f3d0c24377510e3 (diff) | |
download | qpid-python-d4838b1db929de6d650b7cdf574c04425c01b38d.tar.gz |
Preparation for session thread safety overhaul:
- simplified SessionState, responsibility for protocol states now in Handlers
- qpid::RefCounted, qpid::intrusive_ptr reference counting support.
- build boost unit tests as single exe, speeds up testing.
- fixed leak in AsynchIOAcceptor.cpp
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@590869 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/broker/SessionManager.cpp')
-rw-r--r-- | cpp/src/qpid/broker/SessionManager.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cpp/src/qpid/broker/SessionManager.cpp b/cpp/src/qpid/broker/SessionManager.cpp index 5bdc572491..f12ebc6db1 100644 --- a/cpp/src/qpid/broker/SessionManager.cpp +++ b/cpp/src/qpid/broker/SessionManager.cpp @@ -56,6 +56,7 @@ std::auto_ptr<SessionState> SessionManager::open( void SessionManager::suspend(std::auto_ptr<SessionState> session) { Mutex::ScopedLock l(lock); active.erase(session->getId()); + session->suspend(); session->expiry = AbsTime(now(),session->getTimeout()*TIME_SEC); suspended.push_back(session.release()); // In expiry order eraseExpired(); |