]> git.mxchange.org Git - flightgear.git/commitdiff
Add the statement about the wrong received-buffer size again which might be a useful...
authorehofman <ehofman>
Tue, 30 Jun 2009 07:11:52 +0000 (07:11 +0000)
committerTim Moore <timoore@redhat.com>
Thu, 2 Jul 2009 06:59:16 +0000 (08:59 +0200)
src/Network/generic.cxx

index 74a7090a0da2f53875b392e687f7eba1b65f7eec..9abb6eb4c13782c9a0152e9e17496d95abd0a5b8 100644 (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 );