summaryrefslogtreecommitdiff
path: root/qpid/java/client/src
diff options
context:
space:
mode:
authorRobert Gemmell <robbie@apache.org>2012-05-29 11:38:52 +0000
committerRobert Gemmell <robbie@apache.org>2012-05-29 11:38:52 +0000
commit24ee7287390fd303d34f50c820c217ca9bb881bd (patch)
tree66b6a43fb66011095f9b775bb09bd11c44a8cbeb /qpid/java/client/src
parent8fcda77476c6e20c77d7572d87da20ef3c38941d (diff)
downloadqpid-python-24ee7287390fd303d34f50c820c217ca9bb881bd.tar.gz
QPID-4017: reset the session flow control blocked status during failover.
Applied patch from Oleksandr Rudyy <orudyy@gmail.com>, Philip Harvey <phil@philharveyonline.com> git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1343678 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java/client/src')
-rw-r--r--qpid/java/client/src/main/java/org/apache/qpid/client/AMQConnectionDelegate_8_0.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/qpid/java/client/src/main/java/org/apache/qpid/client/AMQConnectionDelegate_8_0.java b/qpid/java/client/src/main/java/org/apache/qpid/client/AMQConnectionDelegate_8_0.java
index aa5981b81f..68ad794f31 100644
--- a/qpid/java/client/src/main/java/org/apache/qpid/client/AMQConnectionDelegate_8_0.java
+++ b/qpid/java/client/src/main/java/org/apache/qpid/client/AMQConnectionDelegate_8_0.java
@@ -285,7 +285,14 @@ public class AMQConnectionDelegate_8_0 implements AMQConnectionDelegate
for (Iterator it = sessions.iterator(); it.hasNext();)
{
AMQSession s = (AMQSession) it.next();
+
+ // reset the flow control flag
+ // on opening channel, broker sends flow blocked if virtual host is blocked
+ // if virtual host is not blocked, then broker does not send flow command
+ // that's why we need to reset the flow control flag
+ s.setFlowControl(true);
reopenChannel(s.getChannelId(), s.getDefaultPrefetchHigh(), s.getDefaultPrefetchLow(), s.isTransacted());
+
s.resubscribe();
}
}