1
0
mirror of https://github.com/winscp/winscp.git synced 2026-10-24 02:28:55 +03:00

Proper TLS shutdown

Source commit: 86a380532057c0d913678b9ca910cb319a8f422c
This commit is contained in:
Martin Prikryl
2021-10-01 08:12:42 +00:00
parent e27595b329
commit 268f63557e

View File

@@ -606,6 +606,14 @@ int CAsyncSslSocketLayer::Receive(void* lpBuf, int nBufLen, int nFlags)
void CAsyncSslSocketLayer::Close()
{
if (!m_nShutDown)
{
ShutDown();
while (!ShutDownComplete())
{
OnSend(0);
}
}
m_nShutDown = 0;
m_onCloseCalled = false;
ResetSslSession();