mirror of
https://github.com/PurpleI2P/i2pd
synced 2024-11-10 00:00:29 +03:00
doen't send Ack packet too often if missing packets
This commit is contained in:
parent
530c353b00
commit
a3246cd9dc
@ -203,8 +203,11 @@ namespace stream
|
||||
// save message and wait for missing message again
|
||||
SavePacket (packet);
|
||||
if (m_LastReceivedSequenceNumber >= 0)
|
||||
// send NACKs for missing messages with minimal timeout
|
||||
ScheduleAck (MIN_SEND_ACK_TIMEOUT);
|
||||
{
|
||||
if (!m_IsAckSendScheduled)
|
||||
// send NACKs for missing messages
|
||||
ScheduleAck (MIN_SEND_ACK_TIMEOUT*m_SavedPackets.size ());
|
||||
}
|
||||
else
|
||||
// wait for SYN
|
||||
ScheduleAck (SYN_TIMEOUT);
|
||||
|
Loading…
Reference in New Issue
Block a user