Browse Source

reduce number of acks being sent

pull/2094/head
orignal 4 months ago
parent
commit
41dd8b527d
  1. 3
      libi2pd/Streaming.cpp

3
libi2pd/Streaming.cpp

@ -236,7 +236,8 @@ namespace stream @@ -236,7 +236,8 @@ namespace stream
if (!m_IsAckSendScheduled)
{
// 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;
ScheduleAck (ackTimeout);
}

Loading…
Cancel
Save