lower SSU2 resend traffic spikes

This commit is contained in:
Vort 2024-03-14 16:34:40 +02:00
parent 530a078535
commit 0236769134
2 changed files with 3 additions and 3 deletions

View file

@ -537,7 +537,7 @@ namespace transport
if (m_SentPackets.empty ()) return 0;
std::map<uint32_t, std::shared_ptr<SSU2SentPacket> > resentPackets;
for (auto it = m_SentPackets.begin (); it != m_SentPackets.end (); )
if (ts >= it->second->sendTime + it->second->numResends*m_RTO)
if (ts >= it->second->sendTime + (it->second->numResends + 1) * m_RTO)
{
if (it->second->numResends > SSU2_MAX_NUM_RESENDS)
{