From 88ab16c1d955397bd92c5dd15eca786676a459fd Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Mon, 17 May 2010 09:38:31 +0000 Subject: QPID-2605: Fix to fragmentation logic for delivered messages git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@945048 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/src/qpid/framing/SendContent.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'qpid/cpp') diff --git a/qpid/cpp/src/qpid/framing/SendContent.cpp b/qpid/cpp/src/qpid/framing/SendContent.cpp index a26c19037b..04b60396da 100644 --- a/qpid/cpp/src/qpid/framing/SendContent.cpp +++ b/qpid/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()); if (body->encodedSize() > maxContentSize) { uint32_t offset = 0; -- cgit v1.2.1