mirror of
https://github.com/PurpleI2P/i2pd
synced 2024-11-10 00:00:29 +03:00
limit send Ack timeout by Ack delay interval
This commit is contained in:
parent
faaa8115d9
commit
822cb35efe
@ -205,8 +205,12 @@ namespace stream
|
||||
if (m_LastReceivedSequenceNumber >= 0)
|
||||
{
|
||||
if (!m_IsAckSendScheduled)
|
||||
{
|
||||
// send NACKs for missing messages
|
||||
ScheduleAck (MIN_SEND_ACK_TIMEOUT*m_SavedPackets.size ());
|
||||
int ackTimeout = MIN_SEND_ACK_TIMEOUT*m_SavedPackets.size ();
|
||||
if (ackTimeout > m_AckDelay) ackTimeout = m_AckDelay;
|
||||
ScheduleAck (ackTimeout);
|
||||
}
|
||||
}
|
||||
else
|
||||
// wait for SYN
|
||||
|
Loading…
Reference in New Issue
Block a user