summaryrefslogtreecommitdiff
path: root/qpid/cpp
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2007-12-17 11:01:02 +0000
committerGordon Sim <gsim@apache.org>2007-12-17 11:01:02 +0000
commit76d5d3ab29c5f757b6e95a20c26b44a8be58ad03 (patch)
treeb98329a5aa42d2d3cb8f2bfd0d6d68caaa76cd9b /qpid/cpp
parent55858dccee7725c228a863f4a5dff17bb3a2dfe5 (diff)
downloadqpid-python-76d5d3ab29c5f757b6e95a20c26b44a8be58ad03.tar.gz
Fixed fragmentation (content bodies were 1 byte smaller than they could be due to including end of frame marker in the overhead)
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@604823 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp')
-rw-r--r--qpid/cpp/src/qpid/client/ExecutionHandler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qpid/cpp/src/qpid/client/ExecutionHandler.cpp b/qpid/cpp/src/qpid/client/ExecutionHandler.cpp
index 63ee80d9f6..85e646416c 100644
--- a/qpid/cpp/src/qpid/client/ExecutionHandler.cpp
+++ b/qpid/cpp/src/qpid/client/ExecutionHandler.cpp
@@ -206,7 +206,7 @@ void ExecutionHandler::sendContent(const MethodContent& content)
if(data_length > 0){
header.setEof(false);
out(header);
- u_int32_t frag_size = maxFrameSize - AMQFrame::frameOverhead();
+ u_int32_t frag_size = maxFrameSize - (AMQFrame::frameOverhead() - 1 /*end of frame marker included in overhead but not in size*/);
if(data_length < frag_size){
AMQFrame frame(in_place<AMQContentBody>(content.getData()));
frame.setBof(false);