Warn on out-of-order or duplicated packets (or missing nonce increment!)

This commit is contained in:
Keith Winstein
2012-05-23 18:08:31 -04:00
parent 0b5a643964
commit 682bbdfebd
4 changed files with 30 additions and 5 deletions
+7 -2
View File
@@ -402,11 +402,16 @@ void STMClient::main( void )
network->tick();
const Network::NetworkException *exn = network->get_send_exception();
const Network::NetworkException *exn = network->get_recv_exception();
if ( exn ) {
overlays.get_notification_engine().set_network_exception( *exn );
} else {
overlays.get_notification_engine().clear_network_exception();
exn = network->get_send_exception();
if ( exn ) {
overlays.get_notification_engine().set_network_exception( *exn );
} else {
overlays.get_notification_engine().clear_network_exception();
}
}
} catch ( Network::NetworkException e ) {
if ( !network->shutdown_in_progress() ) {