diff options
author | Arnaud Simon <arnaudsimon@apache.org> | 2009-02-16 13:48:36 +0000 |
---|---|---|
committer | Arnaud Simon <arnaudsimon@apache.org> | 2009-02-16 13:48:36 +0000 |
commit | 8d5d3bd5dfab05bba2e4db31d6dd189581f8b35c (patch) | |
tree | 6567370c0b241aa4c59f69eabc742e4aaf8f59aa | |
parent | f414ad822a69fc734e6ecff62f19c4a94487865d (diff) | |
download | qpid-python-8d5d3bd5dfab05bba2e4db31d6dd189581f8b35c.tar.gz |
QPID-1665: changed acknowledgeMessage so to ack messages even if maxprefetch is greater than 1
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@744917 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | java/client/src/main/java/org/apache/qpid/client/AMQSession_0_10.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/java/client/src/main/java/org/apache/qpid/client/AMQSession_0_10.java b/java/client/src/main/java/org/apache/qpid/client/AMQSession_0_10.java index 8d2e9996bb..45b74f317e 100644 --- a/java/client/src/main/java/org/apache/qpid/client/AMQSession_0_10.java +++ b/java/client/src/main/java/org/apache/qpid/client/AMQSession_0_10.java @@ -196,10 +196,10 @@ public class AMQSession_0_10 extends AMQSession<BasicMessageConsumer_0_10, Basic long prefetch = getAMQConnection().getMaxPrefetch(); - if (unackedCount >= prefetch/2) + if (unackedCount >= prefetch/2 || _acknowledgeMode != org.apache.qpid.jms.Session.NO_ACKNOWLEDGE) { flushAcknowledgments(); - } + } } void flushAcknowledgments() |