From ed4def7ee86436a846c601805ce11648ad45d153 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Thu, 12 Dec 2013 10:21:33 +0100 Subject: [PATCH] Fix livestatus keepalive handling fixes #5314 --- components/livestatus/query.cpp | 3 +++ 1 file changed, 3 insertions(+) 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") -- 2.40.0