mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
3-hops tunnels for tunnel pool
This commit is contained in:
parent
b47d7aceaa
commit
26c5f6cd77
4 changed files with 15 additions and 24 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue