diff options
author | Gordon Sim <gsim@apache.org> | 2007-12-13 18:44:24 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2007-12-13 18:44:24 +0000 |
commit | 290f052bdcfa112292c891dc4f179e20bf06c812 (patch) | |
tree | df7e46a810194e03043395eb3c98c9cd1641faa2 /cpp/src/qpid/client/ExecutionHandler.cpp | |
parent | d1910203a6803d4eed26d694909721e4a0142320 (diff) | |
download | qpid-python-290f052bdcfa112292c891dc4f179e20bf06c812.tar.gz |
Some fixes relating to message 'staging'.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@603973 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/client/ExecutionHandler.cpp')
-rw-r--r-- | cpp/src/qpid/client/ExecutionHandler.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cpp/src/qpid/client/ExecutionHandler.cpp b/cpp/src/qpid/client/ExecutionHandler.cpp index f30a35aad0..63ee80d9f6 100644 --- a/cpp/src/qpid/client/ExecutionHandler.cpp +++ b/cpp/src/qpid/client/ExecutionHandler.cpp @@ -206,8 +206,7 @@ void ExecutionHandler::sendContent(const MethodContent& content) if(data_length > 0){ header.setEof(false); out(header); - //frame itself uses 8 bytes - u_int32_t frag_size = maxFrameSize - 8; + u_int32_t frag_size = maxFrameSize - AMQFrame::frameOverhead(); if(data_length < frag_size){ AMQFrame frame(in_place<AMQContentBody>(content.getData())); frame.setBof(false); |