Add handshake session timeout protection

This commit is contained in:
savis
2025-12-28 05:03:47 +01:00
parent c34a721328
commit e4182a1b9e
3 changed files with 28 additions and 0 deletions

View File

@@ -224,6 +224,18 @@ void DESC_MANAGER::DestroyClosed()
DestroyDesc(d, false);
m_set_pkDesc.erase(ci);
}
else if (d->IsPhase(PHASE_HANDSHAKE))
{
if (d->GetType() == DESC_TYPE_ACCEPTOR)
{
if (d->IsExpiredHandshake())
{
sys_log(0, "[%s]: handshake session has expired!", d->GetHostName());
DestroyDesc(d, false);
m_set_pkDesc.erase(ci);
}
}
}
}
}