mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-07 06:09:42 +00:00
lower SSU2 resend traffic spikes
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user