From: ehofman Date: Tue, 30 Jun 2009 07:11:52 +0000 (+0000) Subject: Add the statement about the wrong received-buffer size again which might be a useful... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=38d538cdb842586eb66b16a691ecfc06a88853ba;p=flightgear.git Add the statement about the wrong received-buffer size again which might be a useful debugging tool. --- diff --git a/src/Network/generic.cxx b/src/Network/generic.cxx index 74a7090a0..9abb6eb4c 100644 --- a/src/Network/generic.cxx +++ b/src/Network/generic.cxx @@ -478,6 +478,12 @@ bool FGGeneric::process() { length = io->read( buf, binary_record_length ); if ( length == binary_record_length ) { parse_message(); + } else if ( length > 0 ) { + SG_LOG( SG_IO, SG_ALERT, + "Generic protocol: Received binary " + "record of unexpected size, expected: " + << binary_record_length << " but received: " + << length); } } } while ( length == binary_record_length );