move unsent I2NP messages to new session if replaced

This commit is contained in:
orignal 2024-06-01 20:02:04 -04:00
parent a1322d4667
commit bc8adf1433
3 changed files with 27 additions and 7 deletions

View file

@ -383,10 +383,12 @@ namespace transport
m_SendQueue.push_back (std::move (it));
}
}
SendQueue ();
if (m_SendQueue.size () > 0) // windows is full
Resend (i2p::util::GetMillisecondsSinceEpoch ());
if (IsEstablished ())
{
SendQueue ();
if (m_SendQueue.size () > 0) // windows is full
Resend (i2p::util::GetMillisecondsSinceEpoch ());
}
SetSendQueueSize (m_SendQueue.size ());
}