Mercurial > dovecot > core-2.2
changeset 13640:a95bb5877f00
master: Reset service's listen_pending flag when it gets a new available process.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 20 Oct 2011 18:26:15 +0300 |
parents | 221ec0404d8e |
children | fddbb26400d0 |
files | src/master/service-monitor.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/master/service-monitor.c Thu Oct 20 16:54:36 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)