mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-29 20:27:49 +02:00
cleanup RelayRequests
This commit is contained in:
parent
8debdc264c
commit
18b6ba80f2
5 changed files with 22 additions and 14 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue