summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2008-05-14 16:38:43 +0000
committerGordon Sim <gsim@apache.org>2008-05-14 16:38:43 +0000
commitc59bf9b7e877acc4f0be19a6abcdd67fa7ecc05e (patch)
tree75ce082b9e91530f632993554d51cb63ae7e881f /cpp
parent8fad6642ca584f130514b2f8648a129d6f52f0ae (diff)
downloadqpid-python-c59bf9b7e877acc4f0be19a6abcdd67fa7ecc05e.tar.gz
Fix for large messages.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@656331 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp')
-rw-r--r--cpp/src/qpid/client/SessionImpl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/qpid/client/SessionImpl.cpp b/cpp/src/qpid/client/SessionImpl.cpp
index e998d040c8..18b573b464 100644
--- a/cpp/src/qpid/client/SessionImpl.cpp
+++ b/cpp/src/qpid/client/SessionImpl.cpp
@@ -322,7 +322,7 @@ void SessionImpl::sendContent(const MethodContent& content)
header.setLastSegment(false);
handleOut(header);
/*Note: end of frame marker included in overhead but not in size*/
- const u_int32_t frag_size = maxFrameSize - (AMQFrame::frameOverhead() - 1);
+ const u_int32_t frag_size = maxFrameSize - AMQFrame::frameOverhead();
if(data_length < frag_size){
AMQFrame frame(in_place<AMQContentBody>(content.getData()));