1
0
mirror of https://github.com/Icinga/icinga2.git synced 2025-04-08 17:05:25 +02:00

Merge pull request from Icinga/bugfix/sporadic-check_nscp_api-timeouts-6242

TlsStream#IsEof(): fix false positive EOF indicator
This commit is contained in:
Michael Friedrich 2018-06-21 15:04:55 +02:00 committed by GitHub
commit 17ae8011eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -393,7 +393,7 @@ void TlsStream::CloseInternal(bool inDestructor)
bool TlsStream::IsEof() const
{
return m_Eof;
return m_Eof && m_RecvQ->GetAvailableBytes() < 1u;
}
bool TlsStream::SupportsWaiting() const