summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/qpid/SessionState.h
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2010-08-03 15:33:12 +0000
committerAlan Conway <aconway@apache.org>2010-08-03 15:33:12 +0000
commit3a703237459096093b59befb5843f3edf23a35d3 (patch)
tree7ecb6db3cc546fe08b457879bca372b355e8c2d2 /qpid/cpp/src/qpid/SessionState.h
parent0f69283dbeebedf0396fec9dd8362c194e3b0236 (diff)
downloadqpid-python-3a703237459096093b59befb5843f3edf23a35d3.tar.gz
Disable non-0 session timeouts.
Since session resume is not fully implemented, non-0 session timeouts are of no use. Moreover the partial implementation causes problems in a cluster as stale sessions kept alive by a timeout can interfere with failover and updates. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@981933 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/qpid/SessionState.h')
-rw-r--r--qpid/cpp/src/qpid/SessionState.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/qpid/cpp/src/qpid/SessionState.h b/qpid/cpp/src/qpid/SessionState.h
index da28738546..02853b1143 100644
--- a/qpid/cpp/src/qpid/SessionState.h
+++ b/qpid/cpp/src/qpid/SessionState.h
@@ -92,8 +92,8 @@ class SessionState {
const SessionId& getId() const { return id; }
- uint32_t getTimeout() const { return timeout; }
- void setTimeout(uint32_t seconds) { timeout = seconds; }
+ QPID_COMMON_EXTERN virtual uint32_t getTimeout() const;
+ QPID_COMMON_EXTERN virtual void setTimeout(uint32_t seconds);
bool operator==(const SessionId& other) const { return id == other; }
bool operator==(const SessionState& other) const { return id == other.id; }