summaryrefslogtreecommitdiff
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
commitbdd168bff01f07d679919686f70eee7b9dfa91af (patch)
tree01ed491b90f904a74955cc599563d3d3e32e1096
parente8157fdd5ec633f2962913446be3eb8d5dd327b5 (diff)
downloadqpid-python-bdd168bff01f07d679919686f70eee7b9dfa91af.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/qpid@604823 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--cpp/src/qpid/client/ExecutionHandler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/qpid/client/ExecutionHandler.cpp b/cpp/src/qpid/client/ExecutionHandler.cpp
index 63ee80d9f6..85e646416c 100644
--- a/cpp/src/qpid/client/ExecutionHandler.cpp
+++ b/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);