Enable round-trip verifier in verbose mode

This commit is contained in:
Keith Winstein
2012-05-05 01:46:22 -04:00
parent 48fbe3d0e1
commit 3573cec92a
+7 -8
View File
@@ -152,15 +152,14 @@ void TransportSender<MyState>::tick( void )
attempt_prospective_resend_optimization( diff ); attempt_prospective_resend_optimization( diff );
/* verify diff has round-trip identity (modulo Unicode fallback rendering) */ if ( verbose ) {
/* /* verify diff has round-trip identity (modulo Unicode fallback rendering) */
MyState newstate( assumed_receiver_state->state ); MyState newstate( assumed_receiver_state->state );
newstate.apply_string( diff ); newstate.apply_string( diff );
if ( current_state.compare( newstate ) ) { if ( current_state.compare( newstate ) ) {
fprintf( stderr, "Diff: %s\n", diff.c_str() ); fprintf( stderr, "Diff: %s\n", diff.c_str() );
}
} }
*/
if ( diff.empty() && (now >= next_ack_time) ) { if ( diff.empty() && (now >= next_ack_time) ) {
send_empty_ack(); send_empty_ack();