diff options
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/qpid/framing/SendContent.cpp | 4 |
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; |