Close TLS connections more aggressively

refs #6109
This commit is contained in:
Gunnar Beutner 2015-02-14 19:14:45 +01:00
parent 1c7a0d03a1
commit 8903c7e379
1 changed files with 5 additions and 6 deletions

View File

@ -160,12 +160,11 @@ void TlsStream::OnEvent(int revents)
break;
case TlsActionClose:
rc = SSL_shutdown(m_SSL.get());
(void) SSL_shutdown(m_SSL.get());
rc = 1;
if (rc > 0) {
m_CloseOK = true;
m_CV.notify_all();
}
m_CloseOK = true;
m_CV.notify_all();
break;
default:
@ -307,4 +306,4 @@ bool TlsStream::IsDataAvailable(void) const
boost::mutex::scoped_lock lock(m_Mutex);
return m_RecvQ->GetAvailableBytes() > 0;
}
}