]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
master: Change service "connections are being dropped" warning interval to 1 second
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Fri, 14 Jul 2017 14:00:21 +0000 (17:00 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Fri, 14 Jul 2017 14:00:21 +0000 (17:00 +0300)
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

index a74936f0142cc1b0697626925972f15850b68af3..3cfc5040ac4963c418176ffec5c6fec1d650a3b9 100644 (file)
@@ -21,7 +21,7 @@
 #include <syslog.h>
 #include <signal.h>
 
-#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";