cleanup RelayRequests

This commit is contained in:
orignal 2021-09-22 19:09:56 -04:00
parent 8debdc264c
commit 18b6ba80f2
5 changed files with 22 additions and 14 deletions

View file

@ -484,9 +484,8 @@ namespace transport
}
}
void SSUData::CleanUp ()
void SSUData::CleanUp (uint64_t ts)
{
uint32_t ts = i2p::util::GetSecondsSinceEpoch ();
for (auto it = m_IncompleteMessages.begin (); it != m_IncompleteMessages.end ();)
{
if (ts > it->second->lastFragmentInsertTime + INCOMPLETE_MESSAGES_CLEANUP_TIMEOUT)