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
commit8c7e1cb86e84b674a180562956151f000d9ee73f (patch)
tree61f5f36951eb4390dd3df25884a116edd0eb5c49 /cpp/src
parent7f55615367d553673fa27be21d2155059016a3c8 (diff)
downloadqpid-python-8c7e1cb86e84b674a180562956151f000d9ee73f.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;