mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-02-08 22:13:48 +01:00
reduce number of acks being sent
This commit is contained in:
parent
7376f7c399
commit
41dd8b527d
1 changed files with 2 additions and 1 deletions
|
@ -236,7 +236,8 @@ namespace stream
|
||||||
if (!m_IsAckSendScheduled)
|
if (!m_IsAckSendScheduled)
|
||||||
{
|
{
|
||||||
// send NACKs for missing messages
|
// send NACKs for missing messages
|
||||||
int ackTimeout = MIN_SEND_ACK_TIMEOUT*m_SavedPackets.size ();
|
SendQuickAck ();
|
||||||
|
auto ackTimeout = m_RTT/10;
|
||||||
if (ackTimeout > m_AckDelay) ackTimeout = m_AckDelay;
|
if (ackTimeout > m_AckDelay) ackTimeout = m_AckDelay;
|
||||||
ScheduleAck (ackTimeout);
|
ScheduleAck (ackTimeout);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue