diff options
author | Alan Conway <aconway@apache.org> | 2009-02-10 22:16:05 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2009-02-10 22:16:05 +0000 |
commit | e520915a8161af6fb39ff3fc68924f0e4b87da85 (patch) | |
tree | f89de3b76b7a9ef172f57c24bc04371e6855fa02 /cpp/src/qpid/cluster/ConnectionDecoder.cpp | |
parent | f6f6916d3a631240f08f9d9fedf5c3b5f71883aa (diff) | |
download | qpid-python-e520915a8161af6fb39ff3fc68924f0e4b87da85.tar.gz |
Remove unused class and clean up some FIXME comments.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@743131 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/cluster/ConnectionDecoder.cpp')
-rw-r--r-- | cpp/src/qpid/cluster/ConnectionDecoder.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/cpp/src/qpid/cluster/ConnectionDecoder.cpp b/cpp/src/qpid/cluster/ConnectionDecoder.cpp index cb958758b8..3c18cf751e 100644 --- a/cpp/src/qpid/cluster/ConnectionDecoder.cpp +++ b/cpp/src/qpid/cluster/ConnectionDecoder.cpp @@ -40,12 +40,14 @@ void ConnectionDecoder::decode(const EventHeader& eh, const void* data, Connecti handler(EventFrame(eh, frame)); frame = decoder.frame; } - handler(EventFrame(eh, frame, 1)); // Set read-credit on the last frame. + // Set read-credit on the last frame ending in this event. + // Credit will be given when this frame is processed. + handler(EventFrame(eh, frame, 1)); } else { // We must give 1 unit read credit per event. - // This event does not contain any complete frames so - // we must give read credit directly. + // This event does not complete any frames so + // we give read credit directly. ConnectionPtr connection = map.getLocal(eh.getConnectionId()); if (connection) connection->giveReadCredit(1); |