changeset 22499:87723fc92363

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.
author Timo Sirainen <timo.sirainen@dovecot.fi>
date Fri, 14 Jul 2017 17:00:21 +0300
parents 9c8e13eb813c
children bf1220873408
files src/master/service-monitor.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/master/service-monitor.c	Tue Jun 13 21:00:23 2017 +0300
+++ b/src/master/service-monitor.c	Fri Jul 14 17:00:21 2017 +0300
@@ -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 @@
 	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";