From 46b15e2c2f9e454fd7041f1e6ad723d093bee052 Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Wed, 12 Sep 2007 14:49:12 +0000 Subject: In ClientChannel: Use subscribe and flush in place of get; use per-subscriber flow control for managing prefetches. In brokers Session: set credit to 0 when subscription is created (modified python tests accordingly) git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@574979 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/tests/ClientSessionTest.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cpp/src/tests/ClientSessionTest.cpp') diff --git a/cpp/src/tests/ClientSessionTest.cpp b/cpp/src/tests/ClientSessionTest.cpp index 9f68716104..7c58708974 100644 --- a/cpp/src/tests/ClientSessionTest.cpp +++ b/cpp/src/tests/ClientSessionTest.cpp @@ -65,6 +65,8 @@ class ClientSessionTest : public CppUnit::TestCase session.queueDeclare_(queue=queueName, exclusive=true, autoDelete=true); //subcribe to the queue with confirm_mode = 1: session.messageSubscribe_(queue=queueName, destination=dest, acquireMode=1); + session.messageFlow((destination=dest, unit=0, value=1));//messages + session.messageFlow((destination=dest, unit=1, value=0xFFFFFFFF));//bytes //publish a message: TransferContent _content(data); _content.getDeliveryProperties().setRoutingKey("my-queue"); -- cgit v1.2.1