diff options
author | Alan Conway <aconway@apache.org> | 2009-02-10 21:42:10 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2009-02-10 21:42:10 +0000 |
commit | f6f6916d3a631240f08f9d9fedf5c3b5f71883aa (patch) | |
tree | 425e4f99c4355f15ff317dbe23d32a0ebafca2e5 /cpp/src/qpid/cluster/Decoder.cpp | |
parent | 4fb52cd93157ba10d82e656ce87051c7867e25f0 (diff) | |
download | qpid-python-f6f6916d3a631240f08f9d9fedf5c3b5f71883aa.tar.gz |
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
Diffstat (limited to 'cpp/src/qpid/cluster/Decoder.cpp')
-rw-r--r-- | cpp/src/qpid/cluster/Decoder.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/qpid/cluster/Decoder.cpp b/cpp/src/qpid/cluster/Decoder.cpp index b2ab7c8d0f..54d0224db1 100644 --- a/cpp/src/qpid/cluster/Decoder.cpp +++ b/cpp/src/qpid/cluster/Decoder.cpp @@ -29,12 +29,12 @@ namespace cluster { using namespace framing; -Decoder::Decoder(const Handler& h) : handler(h) {} +Decoder::Decoder(const Handler& h, ConnectionMap& cm) : handler(h), connections(cm) {} void Decoder::decode(const EventHeader& eh, const void* data) { ConnectionId id = eh.getConnectionId(); std::pair<Map::iterator, bool> ib = map.insert(id, new ConnectionDecoder(handler)); - ptr_map_ptr(ib.first)->decode(eh, data); + ptr_map_ptr(ib.first)->decode(eh, data, connections); } void Decoder::erase(const ConnectionId& c) { |