From 3c7851107c254e80c65cd4f2b42c20b61dfa5146 Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Wed, 20 Jun 2018 16:55:33 +0200 Subject: [PATCH] TlsStream#IsEof(): fix false positive EOF indicator refs #6242 --- lib/base/tlsstream.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/base/tlsstream.cpp b/lib/base/tlsstream.cpp index a05a3d7d5..38a9b72dc 100644 --- a/lib/base/tlsstream.cpp +++ b/lib/base/tlsstream.cpp @@ -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