From c59bf9b7e877acc4f0be19a6abcdd67fa7ecc05e Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Wed, 14 May 2008 16:38:43 +0000 Subject: Fix for large messages. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@656331 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/client/SessionImpl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpp/src/qpid/client') 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(content.getData())); -- cgit v1.2.1