Merge pull request #6662 from Icinga/bugfix/keep-http-connection-open-until-stream-eof

Keep the HTTP server connection open until the stream is EOF
This commit is contained in:
Michael Friedrich 2018-10-24 11:31:06 +02:00 committed by GitHub
commit bd8e9f55da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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();