mirror of https://github.com/Icinga/icinga2.git
parent
bb2cdff435
commit
9567cd663b
|
@ -63,5 +63,5 @@ void StdioStream::Close(void)
|
||||||
|
|
||||||
bool StdioStream::IsEof(void) const
|
bool StdioStream::IsEof(void) const
|
||||||
{
|
{
|
||||||
return m_InnerStream->eof();
|
return !m_InnerStream->good();
|
||||||
}
|
}
|
||||||
|
|
|
@ -131,7 +131,7 @@ void TlsStream::OnEvent(int revents)
|
||||||
char buffer[512];
|
char buffer[512];
|
||||||
|
|
||||||
if (m_CurrentAction == TlsActionNone) {
|
if (m_CurrentAction == TlsActionNone) {
|
||||||
if (revents & POLLIN)
|
if (revents & (POLLIN | POLLERR | POLLHUP))
|
||||||
m_CurrentAction = TlsActionRead;
|
m_CurrentAction = TlsActionRead;
|
||||||
else if (m_SendQ->GetAvailableBytes() > 0 && (revents & POLLOUT))
|
else if (m_SendQ->GetAvailableBytes() > 0 && (revents & POLLOUT))
|
||||||
m_CurrentAction = TlsActionWrite;
|
m_CurrentAction = TlsActionWrite;
|
||||||
|
|
Loading…
Reference in New Issue