From bdd168bff01f07d679919686f70eee7b9dfa91af Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Mon, 17 Dec 2007 11:01:02 +0000 Subject: 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 --- cpp/src/qpid/client/ExecutionHandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpp/src') 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(content.getData())); frame.setBof(false); -- cgit v1.2.1