mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-19 01:09:58 +00: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
|
// save message and wait for missing message again
|
||||||
SavePacket (packet);
|
SavePacket (packet);
|
||||||
if (m_LastReceivedSequenceNumber >= 0)
|
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
|
else
|
||||||
// wait for SYN
|
// wait for SYN
|
||||||
ScheduleAck (SYN_TIMEOUT);
|
ScheduleAck (SYN_TIMEOUT);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user