1
0
Fork 0

Add the statement about the wrong received-buffer size again which might be a useful debugging tool.

This commit is contained in:
ehofman 2009-06-30 07:11:52 +00:00 committed by Tim Moore
parent 0dfd7b8024
commit 38d538cdb8

View file

@ -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 );