cleanup unclaimed out-of-sequence fragments

This commit is contained in:
orignal 2016-11-09 14:51:55 -05:00
parent b83e7e6c5c
commit 46f927fc1b
5 changed files with 44 additions and 24 deletions

View file

@ -714,6 +714,8 @@ namespace tunnel
if (ts + TUNNEL_EXPIRATION_THRESHOLD > tunnel->GetCreationTime () + TUNNEL_EXPIRATION_TIMEOUT)
tunnel->SetState (eTunnelStateExpiring);
else // we don't need to cleanup expiring tunnels
tunnel->Cleanup ();
}
it++;
}
@ -763,7 +765,10 @@ namespace tunnel
it = m_TransitTunnels.erase (it);
}
else
{
tunnel->Cleanup ();
it++;
}
}
}