diff options
author | Gordon Sim <gsim@apache.org> | 2010-05-17 09:38:31 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2010-05-17 09:38:31 +0000 |
commit | 88ab16c1d955397bd92c5dd15eca786676a459fd (patch) | |
tree | d1d36a167c50d039bc620de9b97704d3fae0093a /qpid/cpp/src/qpid/framing | |
parent | 72c2c6669ffd4f2177a09480c6ee253b7ceec1f9 (diff) | |
download | qpid-python-88ab16c1d955397bd92c5dd15eca786676a459fd.tar.gz |
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
Diffstat (limited to 'qpid/cpp/src/qpid/framing')
-rw-r--r-- | qpid/cpp/src/qpid/framing/SendContent.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
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<AMQContentBody>()); if (body->encodedSize() > maxContentSize) { uint32_t offset = 0; |