mirror of
https://github.com/PurpleI2P/i2pd
synced 2024-11-10 00:00:29 +03:00
fixed stream hanging due to inactivity. Smoother RTT
This commit is contained in:
parent
8c0a1197d7
commit
a9c486d7a1
@ -1167,7 +1167,7 @@ namespace stream
|
||||
if (m_IsNAcked) ScheduleSend ();
|
||||
}
|
||||
else
|
||||
ScheduleSend ();
|
||||
SendBuffer ();
|
||||
if (!m_IsNAcked) ScheduleResend ();
|
||||
}
|
||||
|
||||
|
@ -56,7 +56,7 @@ namespace stream
|
||||
const int INITIAL_WINDOW_SIZE = 10;
|
||||
const int MIN_WINDOW_SIZE = 1;
|
||||
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 INITIAL_RTT = 8000; // in milliseconds
|
||||
const int INITIAL_RTO = 9000; // in milliseconds
|
||||
|
Loading…
Reference in New Issue
Block a user