dovecot-2.1: lib-master: If accept() fails, stop listening only ...

dovecot at dovecot.org dovecot at dovecot.org
Fri Feb 17 01:20:18 EET 2012


details:   http://hg.dovecot.org/dovecot-2.1/rev/701709f472e9
changeset: 14169:701709f472e9
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Feb 17 01:19:59 2012 +0200
description:
lib-master: If accept() fails, stop listening only temporarily, not permanently.

diffstat:

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

diffs (14 lines):

diff -r 89eb4c204341 -r 701709f472e9 src/lib-master/master-service.c
--- a/src/lib-master/master-service.c	Fri Feb 17 01:14:02 2012 +0200
+++ b/src/lib-master/master-service.c	Fri Feb 17 01:19:59 2012 +0200
@@ -779,7 +779,9 @@
 		} else {
 			errno = orig_errno;
 			i_error("net_accept() failed: %m");
-			master_service_error(service);
+			/* try again later after one of the existing
+			   connections has died */
+			master_service_io_listeners_remove(service);
 			return;
 		}
 		/* use the "listener" as the connection fd and stop the


More information about the dovecot-cvs mailing list