diff options
| author | Gordon Sim <gsim@apache.org> | 2008-05-14 16:38:43 +0000 |
|---|---|---|
| committer | Gordon Sim <gsim@apache.org> | 2008-05-14 16:38:43 +0000 |
| commit | 4da538105f863427a4a0002ec25aaa9d63c119d9 (patch) | |
| tree | c034f39dd4ea679dbfe82459ddc3d06576fbe683 /qpid/cpp | |
| parent | 94ab6974d32c7c57ec018830f377ec7634fe1683 (diff) | |
| download | qpid-python-4da538105f863427a4a0002ec25aaa9d63c119d9.tar.gz | |
Fix for large messages.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@656331 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp')
| -rw-r--r-- | qpid/cpp/src/qpid/client/SessionImpl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qpid/cpp/src/qpid/client/SessionImpl.cpp b/qpid/cpp/src/qpid/client/SessionImpl.cpp index e998d040c8..18b573b464 100644 --- a/qpid/cpp/src/qpid/client/SessionImpl.cpp +++ b/qpid/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())); |
