[dovecot-cvs] dovecot/src/lib-auth auth-server-connection.c, 1.19, 1.20

tss at dovecot.org tss at dovecot.org
Fri Mar 16 17:23:56 EET 2007


Update of /var/lib/cvs/dovecot/src/lib-auth
In directory talvi:/tmp/cvs-serv2140/lib-auth

Modified Files:
	auth-server-connection.c 
Log Message:
If net_connect_unix() fails, assume also that ECONNREFUSED may be a
temporary failure. It can happen if we exceeded the listener's backlog.



Index: auth-server-connection.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-auth/auth-server-connection.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- auth-server-connection.c	15 Dec 2006 18:38:11 -0000	1.19
+++ auth-server-connection.c	16 Mar 2007 15:23:54 -0000	1.20
@@ -203,7 +203,7 @@
 	/* max. 1 second wait here. */
 	for (try = 0; try < 10; try++) {
 		fd = net_connect_unix(path);
-		if (fd != -1 || errno != EAGAIN)
+		if (fd != -1 || (errno != EAGAIN && errno != ECONNREFUSED))
 			break;
 
 		/* busy. wait for a while. */



More information about the dovecot-cvs mailing list