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