From 854d7472c441248cefa783a34606c5ba8bf053ec Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Tue, 9 Dec 2008 20:08:47 +0000 Subject: Cluster: Option --cluster-read-max configures read-to-redeliver flow-control. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@724857 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/cluster/Connection.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cpp/src/qpid/cluster/Connection.cpp') diff --git a/cpp/src/qpid/cluster/Connection.cpp b/cpp/src/qpid/cluster/Connection.cpp index fae81acf00..a422164c81 100644 --- a/cpp/src/qpid/cluster/Connection.cpp +++ b/cpp/src/qpid/cluster/Connection.cpp @@ -74,8 +74,7 @@ Connection::Connection(Cluster& c, sys::ConnectionOutputHandler& out, void Connection::init() { QPID_LOG(debug, cluster << " new connection: " << *this); if (isLocal() && !isCatchUp()) { - // FIXME aconway 2008-12-05: configurable credit limit - output.giveReadCredit(10); + output.giveReadCredit(cluster.getReadMax()); } } @@ -204,7 +203,8 @@ void Connection::deliverBuffer(Buffer& buf) { ++deliverSeq; while (mcastDecoder.decode(buf)) delivered(mcastDecoder.frame); - output.giveReadCredit(1); + if (cluster.getReadMax()) + output.giveReadCredit(1); } broker::SessionState& Connection::sessionState() { -- cgit v1.2.1