From 4b34b8373926ea08ed3c891b86777607755cf59b Mon Sep 17 00:00:00 2001 From: Leonardo Grasso Date: Fri, 6 Nov 2020 17:24:41 +0100 Subject: [PATCH] new(userspace/falco): add "output_timeout" config node Signed-off-by: Leonardo Grasso --- userspace/falco/configuration.cpp | 2 ++ userspace/falco/configuration.h | 1 + 2 files changed, 3 insertions(+) diff --git a/userspace/falco/configuration.cpp b/userspace/falco/configuration.cpp index c2f41ef7..1227b0c7 100644 --- a/userspace/falco/configuration.cpp +++ b/userspace/falco/configuration.cpp @@ -176,6 +176,8 @@ void falco_configuration::init(string conf_filename, list &cmdline_optio falco_logger::set_level(m_log_level); + m_output_timeout = m_config->get_scalar("output_timeout", 2000); + m_notifications_rate = m_config->get_scalar("outputs", "rate", 1); m_notifications_max_burst = m_config->get_scalar("outputs", "max_burst", 1000); diff --git a/userspace/falco/configuration.h b/userspace/falco/configuration.h index 37cb3a8e..aa0bc2ea 100644 --- a/userspace/falco/configuration.h +++ b/userspace/falco/configuration.h @@ -204,6 +204,7 @@ public: bool m_buffered_outputs; bool m_time_format_iso_8601; + uint32_t m_output_timeout; bool m_grpc_enabled; uint32_t m_grpc_threadiness;