summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/cluster/Connection.cpp
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2008-12-09 20:08:47 +0000
committerAlan Conway <aconway@apache.org>2008-12-09 20:08:47 +0000
commit854d7472c441248cefa783a34606c5ba8bf053ec (patch)
tree404ac91e8412032112db368175c61fe1b97942f5 /cpp/src/qpid/cluster/Connection.cpp
parentf2bec6c366dc14c9a24dd753adaf798503e87e2e (diff)
downloadqpid-python-854d7472c441248cefa783a34606c5ba8bf053ec.tar.gz
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
Diffstat (limited to 'cpp/src/qpid/cluster/Connection.cpp')
-rw-r--r--cpp/src/qpid/cluster/Connection.cpp6
1 files changed, 3 insertions, 3 deletions
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() {