mirror of https://github.com/Icinga/icinga2.git
parent
b9fdb3bfd9
commit
2adfcb56fe
|
@ -268,9 +268,12 @@ void TlsStream::Handshake(void)
|
||||||
m_CurrentAction = TlsActionHandshake;
|
m_CurrentAction = TlsActionHandshake;
|
||||||
ChangeEvents(POLLOUT);
|
ChangeEvents(POLLOUT);
|
||||||
|
|
||||||
while (!m_HandshakeOK && !m_ErrorOccurred)
|
while (!m_HandshakeOK && !m_ErrorOccurred && !m_Eof)
|
||||||
m_CV.wait(lock);
|
m_CV.wait(lock);
|
||||||
|
|
||||||
|
if (m_Eof)
|
||||||
|
BOOST_THROW_EXCEPTION(std::runtime_error("Socket was closed during TLS handshake."));
|
||||||
|
|
||||||
HandleError();
|
HandleError();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue