mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-23 13:45:04 +02:00
Merge pull request #6397 from Icinga/bugfix/sporadic-check_nscp_api-timeouts-6242
TlsStream#IsEof(): fix false positive EOF indicator
This commit is contained in:
commit
17ae8011eb
@ -393,7 +393,7 @@ void TlsStream::CloseInternal(bool inDestructor)
|
|||||||
|
|
||||||
bool TlsStream::IsEof() const
|
bool TlsStream::IsEof() const
|
||||||
{
|
{
|
||||||
return m_Eof;
|
return m_Eof && m_RecvQ->GetAvailableBytes() < 1u;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool TlsStream::SupportsWaiting() const
|
bool TlsStream::SupportsWaiting() const
|
||||||
|
Loading…
x
Reference in New Issue
Block a user