summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2010-05-17 09:38:31 +0000
committerGordon Sim <gsim@apache.org>2010-05-17 09:38:31 +0000
commitb8554725fc3d668bd45f69b4254a1921e1d2d7d6 (patch)
tree61f5f36951eb4390dd3df25884a116edd0eb5c49 /cpp/src
parent4b02945bd430201576a1e7d9105b7fa9daab07c6 (diff)
downloadqpid-python-b8554725fc3d668bd45f69b4254a1921e1d2d7d6.tar.gz
QPID-2605: Fix to fragmentation logic for delivered messages
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@945048 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/qpid/framing/SendContent.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/cpp/src/qpid/framing/SendContent.cpp b/cpp/src/qpid/framing/SendContent.cpp
index a26c19037b..04b60396da 100644
--- a/cpp/src/qpid/framing/SendContent.cpp
+++ b/cpp/src/qpid/framing/SendContent.cpp
@@ -30,9 +30,7 @@ void qpid::framing::SendContent::operator()(const AMQFrame& f)
bool first = frameCount == 0;
bool last = ++frameCount == expectedFrameCount;
- /*end of frame marker is included in frameOverhead() but not in
- real frame size, hence substract -1 from frameOverhead()*/
- uint16_t maxContentSize = maxFrameSize - (AMQFrame::frameOverhead() - 1);
+ uint16_t maxContentSize = maxFrameSize - AMQFrame::frameOverhead();
const AMQContentBody* body(f.castBody<AMQContentBody>());
if (body->encodedSize() > maxContentSize) {
uint32_t offset = 0;