From e520915a8161af6fb39ff3fc68924f0e4b87da85 Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Tue, 10 Feb 2009 22:16:05 +0000 Subject: 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 --- cpp/src/qpid/cluster/ConnectionDecoder.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'cpp/src/qpid/cluster/ConnectionDecoder.cpp') 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); -- cgit v1.2.1