From 86d5aa7ccc3fb6e9cf23a52e8b2d69aae53692f7 Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Wed, 11 Feb 2009 17:29:42 +0000 Subject: Fix race condition with read-credit. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@743416 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/cluster/Connection.cpp | 1 + 1 file changed, 1 insertion(+) (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 d97a1b6c68..4a13d24499 100644 --- a/cpp/src/qpid/cluster/Connection.cpp +++ b/cpp/src/qpid/cluster/Connection.cpp @@ -210,6 +210,7 @@ size_t Connection::decode(const char* buffer, size_t size) { remainingSize = size - pi.encodedSize(); } else { QPID_LOG(debug, "Not enough data for protocol header on outgoing clustered link"); + giveReadCredit(1); // We're not going to mcast so give read credit now. return 0; } } -- cgit v1.2.1