From 8e3ec1e93a84fcc0dac67639293b6f80bec21417 Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Wed, 28 Nov 2007 13:28:21 +0000 Subject: Disable recoding of frames for replay where replay will not be required. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@598992 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/framing/SessionState.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpp/src/qpid/framing/SessionState.cpp') diff --git a/cpp/src/qpid/framing/SessionState.cpp b/cpp/src/qpid/framing/SessionState.cpp index 52b71d0cf9..f9019b036c 100644 --- a/cpp/src/qpid/framing/SessionState.cpp +++ b/cpp/src/qpid/framing/SessionState.cpp @@ -32,7 +32,7 @@ namespace qpid { namespace framing { -SessionState::SessionState(uint32_t ack, const Uuid& uuid) : +SessionState::SessionState(uint32_t ack, bool enableReplay, const Uuid& uuid) : state(ATTACHED), id(uuid), lastReceived(-1), @@ -41,7 +41,7 @@ SessionState::SessionState(uint32_t ack, const Uuid& uuid) : sendAckAt(lastReceived+ackInterval), solicitAckAt(lastSent+ackInterval), ackSolicited(false), - resumable(true) + resumable(enableReplay) {} SessionState::SessionState(const Uuid& uuid) : -- cgit v1.2.1