From: Timo Sirainen Date: Fri, 14 Jul 2017 14:00:21 +0000 (+0300) Subject: master: Change service "connections are being dropped" warning interval to 1 second X-Git-Tag: 2.3.0.rc1~1259 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bdc81a44ea0cf97571da9aa11741c7881b9b64e5;p=thirdparty%2Fdovecot%2Fcore.git 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. --- 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";