summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/qpid/SessionState.cpp
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.cpp
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.cpp')
-rw-r--r--qpid/cpp/src/qpid/SessionState.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/qpid/cpp/src/qpid/SessionState.cpp b/qpid/cpp/src/qpid/SessionState.cpp
index 4f370c6765..e5019604d2 100644
--- a/qpid/cpp/src/qpid/SessionState.cpp
+++ b/qpid/cpp/src/qpid/SessionState.cpp
@@ -95,6 +95,9 @@ SessionState::SendState::SendState() : unflushedSize(), replaySize(), bytesSince
SessionState::ReceiveState::ReceiveState() : bytesSinceKnownCompleted() {}
+uint32_t SessionState::getTimeout() const { return timeout; }
+void SessionState::setTimeout(uint32_t seconds) { timeout = seconds; }
+
SessionPoint SessionState::senderGetCommandPoint() { return sender.sendPoint; }
SequenceSet SessionState::senderGetIncomplete() const { return sender.incomplete; }
SessionPoint SessionState::senderGetReplayPoint() const { return sender.replayPoint; }
@@ -240,7 +243,7 @@ SessionState::Configuration::Configuration(size_t flush, size_t hard) :
replayFlushLimit(flush), replayHardLimit(hard) {}
SessionState::SessionState(const SessionId& i, const Configuration& c)
- : id(i), timeout(), config(c), stateful(), receiverTrackingDisabled(false)
+ : id(i), timeout(0), config(c), stateful(false), receiverTrackingDisabled(false)
{
QPID_LOG(debug, "SessionState::SessionState " << id << ": " << this);
}