fixed stream hanging due to inactivity. Smoother RTT

This commit is contained in:
orignal 2024-07-09 10:51:22 -04:00
parent 8c0a1197d7
commit a9c486d7a1
2 changed files with 2 additions and 2 deletions

View File

@ -1167,7 +1167,7 @@ namespace stream
if (m_IsNAcked) ScheduleSend (); if (m_IsNAcked) ScheduleSend ();
} }
else else
ScheduleSend (); SendBuffer ();
if (!m_IsNAcked) ScheduleResend (); if (!m_IsNAcked) ScheduleResend ();
} }

View File

@ -56,7 +56,7 @@ namespace stream
const int INITIAL_WINDOW_SIZE = 10; const int INITIAL_WINDOW_SIZE = 10;
const int MIN_WINDOW_SIZE = 1; const int MIN_WINDOW_SIZE = 1;
const int MAX_WINDOW_SIZE = 128; const int MAX_WINDOW_SIZE = 128;
const double RTT_EWMA_ALPHA = 0.9; const double RTT_EWMA_ALPHA = 0.8;
const int MIN_RTO = 20; // in milliseconds const int MIN_RTO = 20; // in milliseconds
const int INITIAL_RTT = 8000; // in milliseconds const int INITIAL_RTT = 8000; // in milliseconds
const int INITIAL_RTO = 9000; // in milliseconds const int INITIAL_RTO = 9000; // in milliseconds