mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-24 22:24:44 +02:00
Keep the HTTP server connection open until the stream is EOF
fixes #4968
This commit is contained in:
parent
e6eb703b36
commit
83a428c1ba
@ -383,7 +383,7 @@ void HttpServerConnection::DataAvailableHandler()
|
||||
|
||||
void HttpServerConnection::CheckLiveness()
|
||||
{
|
||||
if (m_Seen < Utility::GetTime() - 10 && m_PendingRequests == 0) {
|
||||
if (m_Seen < Utility::GetTime() - 10 && m_PendingRequests == 0 && m_Stream->IsEof()) {
|
||||
Log(LogInformation, "HttpServerConnection")
|
||||
<< "No messages for Http connection have been received in the last 10 seconds.";
|
||||
Disconnect();
|
||||
|
Loading…
x
Reference in New Issue
Block a user