diff options
author | Arnaud Simon <arnaudsimon@apache.org> | 2008-06-20 14:37:20 +0000 |
---|---|---|
committer | Arnaud Simon <arnaudsimon@apache.org> | 2008-06-20 14:37:20 +0000 |
commit | e34a577698e195c576d168480dafcc524e41fa24 (patch) | |
tree | 55ef0bbcc67ca2db1b8d98c39f4b07b73205de4a | |
parent | 5c6e95a122f69ae7eb556b6dad08c79402d28f92 (diff) | |
download | qpid-python-e34a577698e195c576d168480dafcc524e41fa24.tar.gz |
QPID-1112: send completed every maxPrefetch / 2 instead of after every messages once maxPrefetch / 2 has been reached
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@669917 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | qpid/java/client/src/main/java/org/apache/qpid/client/AMQSession_0_10.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qpid/java/client/src/main/java/org/apache/qpid/client/AMQSession_0_10.java b/qpid/java/client/src/main/java/org/apache/qpid/client/AMQSession_0_10.java index 4f9c4edc75..26af708d71 100644 --- a/qpid/java/client/src/main/java/org/apache/qpid/client/AMQSession_0_10.java +++ b/qpid/java/client/src/main/java/org/apache/qpid/client/AMQSession_0_10.java @@ -758,7 +758,7 @@ public class AMQSession_0_10 extends AMQSession _txRangeSet.add((int) id); _txSize++; // this is a heuristic, we may want to have that configurable - if( _txSize > _connection.getMaxPrefetch() / 2 ) + if( _txSize % (_connection.getMaxPrefetch() / 2) == 0 ) { // send completed so consumer credits don't dry up getQpidSession().messageAcknowledge(_txRangeSet, false); |