mirror of https://github.com/Icinga/icinga2.git
parent
882495952a
commit
7f4af89a56
|
@ -218,9 +218,6 @@ void TlsStream::OnEvent(int revents)
|
|||
case SSL_ERROR_ZERO_RETURN:
|
||||
lock.unlock();
|
||||
|
||||
if (IsHandlingEvents())
|
||||
SignalDataAvailable();
|
||||
|
||||
Close();
|
||||
|
||||
break;
|
||||
|
@ -237,9 +234,6 @@ void TlsStream::OnEvent(int revents)
|
|||
|
||||
lock.unlock();
|
||||
|
||||
if (IsHandlingEvents())
|
||||
SignalDataAvailable();
|
||||
|
||||
Close();
|
||||
|
||||
break;
|
||||
|
@ -316,13 +310,17 @@ void TlsStream::Shutdown(void)
|
|||
*/
|
||||
void TlsStream::Close(void)
|
||||
{
|
||||
if (!m_Eof) {
|
||||
m_Eof = true;
|
||||
SignalDataAvailable();
|
||||
}
|
||||
|
||||
Stream::Close();
|
||||
|
||||
SocketEvents::Unregister();
|
||||
|
||||
boost::mutex::scoped_lock lock(m_Mutex);
|
||||
|
||||
m_Eof = true;
|
||||
|
||||
if (!m_SSL)
|
||||
return;
|
||||
|
|
|
@ -206,7 +206,12 @@ void HttpServerConnection::DataAvailableHandler(void)
|
|||
<< "Error while reading Http request: " << DiagnosticInformation(ex);
|
||||
|
||||
Disconnect();
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
if (m_Stream->IsEof())
|
||||
Disconnect();
|
||||
}
|
||||
|
||||
void HttpServerConnection::CheckLiveness(void)
|
||||
|
|
|
@ -202,7 +202,12 @@ void JsonRpcConnection::DataAvailableHandler(void)
|
|||
<< "': " << DiagnosticInformation(ex);
|
||||
|
||||
Disconnect();
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
if (m_Stream->IsEof())
|
||||
Disconnect();
|
||||
}
|
||||
|
||||
Value SetLogPositionHandler(const MessageOrigin::Ptr& origin, const Dictionary::Ptr& params)
|
||||
|
|
Loading…
Reference in New Issue