diff options
author | Alan Conway <aconway@apache.org> | 2008-06-04 16:00:17 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2008-06-04 16:00:17 +0000 |
commit | d1f99cede240ade9532da4fe5061a177c5c63f33 (patch) | |
tree | a2fd2e7ffd1d865ef28bc2e4391439844b3b1dc2 /cpp/src/qpid/amqp_0_10/SessionHandler.cpp | |
parent | 27e5e1b49cec739ee9d27ebe8b7d3a91c0f46744 (diff) | |
download | qpid-python-d1f99cede240ade9532da4fe5061a177c5c63f33.tar.gz |
Increased default flush interval to 1MB, send spontaneous known-completed at the flush interval.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@663271 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/amqp_0_10/SessionHandler.cpp')
-rw-r--r-- | cpp/src/qpid/amqp_0_10/SessionHandler.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/cpp/src/qpid/amqp_0_10/SessionHandler.cpp b/cpp/src/qpid/amqp_0_10/SessionHandler.cpp index 0d1cc57072..53f847a3cf 100644 --- a/cpp/src/qpid/amqp_0_10/SessionHandler.cpp +++ b/cpp/src/qpid/amqp_0_10/SessionHandler.cpp @@ -196,11 +196,13 @@ void SessionHandler::confirmed(const SequenceSet& commands, const Array& /*fragm getState()->senderConfirmed(commands.rangesBegin()->last()); } -void SessionHandler::completed(const SequenceSet& commands, bool /*timelyReply*/) { +void SessionHandler::completed(const SequenceSet& commands, bool timelyReply) { checkAttached(); getState()->senderCompleted(commands); - if (!commands.empty()) - peer.knownCompleted(commands); // Always send a timely reply + if (getState()->senderNeedKnownCompleted() || timelyReply) { + peer.knownCompleted(commands); + getState()->senderRecordKnownCompleted(); + } } void SessionHandler::knownCompleted(const SequenceSet& commands) { |