mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-10-23 12:52:51 +00:00
don't send quick ack for each duplicated packet
This commit is contained in:
1 parent
b4fcf76480
commit
28adb54c0a
1 file changed
+7
-1
@@ -237,8 +237,14 @@ namespace stream
|
||||
UpdateCurrentRemoteLease ();
|
||||
}
|
||||
m_PreviousReceivedSequenceNumber = receivedSeqn;
|
||||
SendQuickAck (); // resend ack for previous message again
|
||||
m_LocalDestination.DeletePacket (packet); // packet dropped
|
||||
if (!m_IsAckSendScheduled)
|
||||
{
|
||||
SendQuickAck (); // resend ack for previous message again
|
||||
auto ackTimeout = m_RTT/10;
|
||||
if (ackTimeout > m_AckDelay) ackTimeout = m_AckDelay;
|
||||
ScheduleAck (ackTimeout);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user