Send "corrected" timestamps to better calculate RTT

This commit is contained in:
Keith Winstein
2011-10-30 03:19:32 -04:00
parent ae40f3b256
commit 90b4931c84
2 changed files with 6 additions and 4 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ TransportSender<MyState>::TransportSender( Connection *s_connection, MyState &in
template <class MyState>
unsigned int TransportSender<MyState>::send_interval( void )
{
int SEND_INTERVAL = lrint( ceil( (connection->get_SRTT() - ACK_DELAY) / 2.0 ) );
int SEND_INTERVAL = lrint( ceil( connection->get_SRTT() / 2.0 ) );
if ( SEND_INTERVAL < SEND_INTERVAL_MIN ) {
SEND_INTERVAL = SEND_INTERVAL_MIN;
} else if ( SEND_INTERVAL > SEND_INTERVAL_MAX ) {