Add the statement about the wrong received-buffer size again which might be a useful debugging tool.
This commit is contained in:
parent
0dfd7b8024
commit
38d538cdb8
1 changed files with 6 additions and 0 deletions
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue