3-hops tunnels for tunnel pool

This commit is contained in:
orignal 2014-03-14 21:22:59 -04:00
parent b47d7aceaa
commit 26c5f6cd77
4 changed files with 15 additions and 24 deletions

View file

@ -436,6 +436,9 @@ namespace tunnel
if (ts > it->second->GetCreationTime () + TUNNEL_EXPIRATION_TIMEOUT)
{
LogPrint ("Tunnel ", it->second->GetTunnelID (), " expired");
auto pool = it->second->GetTunnelPool ();
if (pool)
pool->TunnelExpired (it->second);
it = m_InboundTunnels.erase (it);
}
else
@ -496,7 +499,7 @@ namespace tunnel
void Tunnels::ManageTunnelPools ()
{
for (auto& it: m_Pools)
it->ManageTunnels ();
it->CreateTunnels ();
}
void Tunnels::PostTunnelData (I2NPMessage * msg)