From 8c7e1cb86e84b674a180562956151f000d9ee73f 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/qpid@945048 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/framing/SendContent.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'cpp/src/qpid/framing/SendContent.cpp') 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()); if (body->encodedSize() > maxContentSize) { uint32_t offset = 0; -- cgit v1.2.1