mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
lower SSU2 resend traffic spikes
This commit is contained in:
parent
530a078535
commit
0236769134
2 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue