Limit PMTU discovery retries

This commit is contained in:
Keith Winstein
2011-09-27 00:57:50 -04:00
parent 271e6b8fc2
commit c087286e65
+1
View File
@@ -162,6 +162,7 @@ void TransportSender<MyState>::send_to_receiver( string diff )
if ( MTU_tries > 20 ) { if ( MTU_tries > 20 ) {
fprintf( stderr, "Error, could not send fragments after 20 tries (MTU = %d).\n", fprintf( stderr, "Error, could not send fragments after 20 tries (MTU = %d).\n",
connection->get_MTU() ); connection->get_MTU() );
return;
} }
if ( new_num == sent_states.back().num ) { if ( new_num == sent_states.back().num ) {