summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/cluster/Connection.cpp
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2009-02-11 17:29:42 +0000
committerAlan Conway <aconway@apache.org>2009-02-11 17:29:42 +0000
commit86d5aa7ccc3fb6e9cf23a52e8b2d69aae53692f7 (patch)
treec9474aaa4a191b8ac5aba63a03f45a5c227cf067 /cpp/src/qpid/cluster/Connection.cpp
parent67460e0818bd5617cb84a6ae44c33ef8a11ac0a0 (diff)
downloadqpid-python-86d5aa7ccc3fb6e9cf23a52e8b2d69aae53692f7.tar.gz
Fix race condition with read-credit.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@743416 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/cluster/Connection.cpp')
-rw-r--r--cpp/src/qpid/cluster/Connection.cpp1
1 files changed, 1 insertions, 0 deletions
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;
}
}