mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
delete unreachable SSU sessions
This commit is contained in:
parent
756a920c1a
commit
de377b45b4
1 changed files with 6 additions and 0 deletions
6
SSU.cpp
6
SSU.cpp
|
@ -824,6 +824,7 @@ namespace ssu
|
|||
// encrypt message with session key
|
||||
FillHeaderAndEncrypt (PAYLOAD_TYPE_SESSION_DESTROYED, buf, 48);
|
||||
Send (buf, 48);
|
||||
LogPrint ("SSU session destoryed sent");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1021,7 +1022,12 @@ namespace ssu
|
|||
introducerSession->Introduce (introducer->iTag, introducer->iKey);
|
||||
}
|
||||
else
|
||||
{
|
||||
LogPrint ("Router is unreachable, but no introducers presented. Ignored");
|
||||
m_Sessions.erase (remoteEndpoint);
|
||||
delete session;
|
||||
session = nullptr;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue