From f6f6916d3a631240f08f9d9fedf5c3b5f71883aa Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Tue, 10 Feb 2009 21:42:10 +0000 Subject: Fix cluster flow control bug: hang with large messages (>frame-max) and low --cluster-read-max. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@743114 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/cluster/ConnectionMap.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'cpp/src/qpid/cluster/ConnectionMap.cpp') diff --git a/cpp/src/qpid/cluster/ConnectionMap.cpp b/cpp/src/qpid/cluster/ConnectionMap.cpp index 1a49a4d663..ed2fa94412 100644 --- a/cpp/src/qpid/cluster/ConnectionMap.cpp +++ b/cpp/src/qpid/cluster/ConnectionMap.cpp @@ -62,6 +62,12 @@ ConnectionMap::ConnectionPtr ConnectionMap::get(const ConnectionId& id) { return i->second; } +ConnectionMap::ConnectionPtr ConnectionMap::getLocal(const ConnectionId& id) { + if (id.getMember() != cluster.getId()) return 0; + Map::const_iterator i = map.find(id); + return i == map.end() ? 0 : i->second; +} + ConnectionMap::Vector ConnectionMap::values() const { Vector result(map.size()); std::transform(map.begin(), map.end(), result.begin(), -- cgit v1.2.1