Fix timing of echo acks

This commit is contained in:
Keith Winstein
2012-02-26 02:49:53 -05:00
parent afacda98e4
commit e5c8c33f4f
5 changed files with 49 additions and 9 deletions
+5 -1
View File
@@ -104,7 +104,11 @@ int TransportSender<MyState>::wait_time( void )
{
calculate_timers();
uint64_t next_wakeup = min( next_ack_time, next_send_time );
uint64_t next_wakeup = next_ack_time;
if ( next_send_time < next_wakeup ) {
next_wakeup = next_send_time;
}
uint64_t now = timestamp();
if ( !connection->get_attached() ) {