From bdc81a44ea0cf97571da9aa11741c7881b9b64e5 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Fri, 14 Jul 2017 17:00:21 +0300 Subject: [PATCH] master: Change service "connections are being dropped" warning interval to 1 second When this is happening, it's often accompanied with all kinds of other errors and these warnings drown in them. Make them easier to notice by reducing the interval from 60 seconds to 1 second. --- src/master/service-monitor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/master/service-monitor.c b/src/master/service-monitor.c index a74936f014..3cfc5040ac 100644 --- a/src/master/service-monitor.c +++ b/src/master/service-monitor.c @@ -21,7 +21,7 @@ #include #include -#define SERVICE_DROP_WARN_INTERVAL_SECS 60 +#define SERVICE_DROP_WARN_INTERVAL_SECS 1 #define SERVICE_DROP_TIMEOUT_MSECS (10*1000) #define MAX_DIE_WAIT_MSECS 5000 #define SERVICE_MAX_EXIT_FAILURES_IN_SEC 10 @@ -244,7 +244,7 @@ static void service_drop_connections(struct service_listener *l) int fd; if (service->last_drop_warning + - SERVICE_DROP_WARN_INTERVAL_SECS < ioloop_time) { + SERVICE_DROP_WARN_INTERVAL_SECS <= ioloop_time) { service->last_drop_warning = ioloop_time; if (service->process_limit > 1) { limit_name = "process_limit"; -- 2.47.3