From: Johannes Meyer Date: Thu, 12 Dec 2013 09:21:33 +0000 (+0100) Subject: Fix livestatus keepalive handling X-Git-Tag: v0.0.6~51 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ed4def7ee86436a846c601805ce11648ad45d153;p=icinga2 Fix livestatus keepalive handling fixes #5314 --- diff --git a/components/livestatus/query.cpp b/components/livestatus/query.cpp index 91bb244cd..ede5a981c 100644 --- a/components/livestatus/query.cpp +++ b/components/livestatus/query.cpp @@ -85,6 +85,7 @@ Query::Query(const std::vector& lines, const String& compat_log_path) m_Verb = verb; if (m_Verb == "COMMAND") { + m_KeepAlive = true; m_Command = target; } else if (m_Verb == "GET") { m_Table = target; @@ -113,6 +114,8 @@ Query::Query(const std::vector& lines, const String& compat_log_path) m_ResponseHeader = params; else if (header == "OutputFormat") m_OutputFormat = params; + else if (header == "KeepAlive") + m_KeepAlive = (params == "on"); else if (header == "Columns") boost::algorithm::split(m_Columns, params, boost::is_any_of(" ")); else if (header == "Separators")