summaryrefslogtreecommitdiff
path: root/qpid/java/client
diff options
context:
space:
mode:
authorRafael H. Schloming <rhs@apache.org>2009-03-03 23:32:09 +0000
committerRafael H. Schloming <rhs@apache.org>2009-03-03 23:32:09 +0000
commita436cb1f477a6532e1608ef376d7d8877a207705 (patch)
tree702ea3a9db644ba1ec307152c0ae7327844fa05a /qpid/java/client
parent708ac68871b1b3ea1865294d881cbcca873a2bec (diff)
downloadqpid-python-a436cb1f477a6532e1608ef376d7d8877a207705.tar.gz
reset byte credit after flushing when not prefetching, this is a follow up fix for QPID-1642/QPID-1643
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@749842 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java/client')
-rw-r--r--qpid/java/client/src/main/java/org/apache/qpid/client/BasicMessageConsumer_0_10.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/qpid/java/client/src/main/java/org/apache/qpid/client/BasicMessageConsumer_0_10.java b/qpid/java/client/src/main/java/org/apache/qpid/client/BasicMessageConsumer_0_10.java
index a2b233b063..8b17dcf91f 100644
--- a/qpid/java/client/src/main/java/org/apache/qpid/client/BasicMessageConsumer_0_10.java
+++ b/qpid/java/client/src/main/java/org/apache/qpid/client/BasicMessageConsumer_0_10.java
@@ -386,14 +386,14 @@ public class BasicMessageConsumer_0_10 extends BasicMessageConsumer<UnprocessedM
if (o == null && _0_10session.isStarted())
{
_0_10session.getQpidSession().messageFlush
- (getConsumerTagString(), Option.UNRELIABLE);
+ (getConsumerTagString(), Option.UNRELIABLE, Option.SYNC);
_0_10session.getQpidSession().sync();
+ _0_10session.getQpidSession().messageFlow
+ (getConsumerTagString(), MessageCreditUnit.BYTE,
+ 0xFFFFFFFF, Option.UNRELIABLE);
if (getSession().prefetch())
{
_0_10session.getQpidSession().messageFlow
- (getConsumerTagString(), MessageCreditUnit.BYTE,
- 0xFFFFFFFF, Option.UNRELIABLE);
- _0_10session.getQpidSession().messageFlow
(getConsumerTagString(), MessageCreditUnit.MESSAGE,
_0_10session.getAMQConnection().getMaxPrefetch(),
Option.UNRELIABLE);