diff options
| author | Gordon Sim <gsim@apache.org> | 2007-12-17 11:01:02 +0000 |
|---|---|---|
| committer | Gordon Sim <gsim@apache.org> | 2007-12-17 11:01:02 +0000 |
| commit | 76d5d3ab29c5f757b6e95a20c26b44a8be58ad03 (patch) | |
| tree | b98329a5aa42d2d3cb8f2bfd0d6d68caaa76cd9b /qpid/cpp | |
| parent | 55858dccee7725c228a863f4a5dff17bb3a2dfe5 (diff) | |
| download | qpid-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.cpp | 2 |
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); |
