Skip to content

Commit 8f4e080

Browse files
author
Alexandru Scvortov
committed
merge bug24221 into default (channel.flow{active=true} can fail to unblock queues)
2 parents ae96a3f + 8481fce commit 8f4e080

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

test/src/com/rabbitmq/client/test/functional/QosTests.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,21 @@ public void testFlow() throws IOException
355355
drain(c, 1);
356356
}
357357

358+
public void testLimitAndFlow() throws IOException
359+
{
360+
channel.basicQos(1);
361+
QueueingConsumer c = new QueueingConsumer(channel);
362+
declareBindConsume(c);
363+
channel.flow(false);
364+
fill(3);
365+
drain(c, 0);
366+
channel.flow(true);
367+
ack(drain(c, 1), false);
368+
drain(c, 1);
369+
channel.basicQos(0);
370+
drain(c, 1);
371+
}
372+
358373
public void testNoConsumers() throws Exception {
359374
String q = declareBind(channel);
360375
fill(1);

0 commit comments

Comments
 (0)