dovecot-2.0: master: Reset service's listen_pending flag when it...

dovecot at dovecot.org dovecot at dovecot.org
Thu Oct 20 18:17:56 EEST 2011


details:   http://hg.dovecot.org/dovecot-2.0/rev/6f1442a0d1c6
changeset: 12948:6f1442a0d1c6
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Oct 20 18:26:15 2011 +0300
description:
master: Reset service's listen_pending flag when it gets a new available process.

diffstat:

 src/master/service-monitor.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r 962df5d9413a -r 6f1442a0d1c6 src/master/service-monitor.c
--- a/src/master/service-monitor.c	Wed Oct 12 17:16:10 2011 +0300
+++ b/src/master/service-monitor.c	Thu Oct 20 18:26:15 2011 +0300
@@ -216,8 +216,8 @@
 		   reach connection limit */
 		service_login_notify(service, TRUE);
 
+		service_monitor_listen_stop(service);
 		service->listen_pending = TRUE;
-		service_monitor_listen_stop(service);
 	} else {
 		/* just accept and close the connection, so it's clear that
 		   this is happening because of the limit, rather than because
@@ -302,6 +302,7 @@
 			io_remove(&l->io);
 	}
 	service->listening = FALSE;
+	service->listen_pending = FALSE;
 }
 
 static int service_login_create_notify_fd(struct service *service)


More information about the dovecot-cvs mailing list