mirror of https://github.com/Icinga/icinga2.git
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:
commit
bd8e9f55da
|
@ -383,7 +383,7 @@ void HttpServerConnection::DataAvailableHandler()
|
||||||
|
|
||||||
void HttpServerConnection::CheckLiveness()
|
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")
|
Log(LogInformation, "HttpServerConnection")
|
||||||
<< "No messages for Http connection have been received in the last 10 seconds.";
|
<< "No messages for Http connection have been received in the last 10 seconds.";
|
||||||
Disconnect();
|
Disconnect();
|
||||||
|
|
Loading…
Reference in New Issue