[dovecot-cvs] dovecot/src/lib-auth auth-server-connection.c, 1.16.2.1, 1.16.2.2
tss at dovecot.org
tss at dovecot.org
Fri Mar 16 17:23:53 EET 2007
Update of /var/lib/cvs/dovecot/src/lib-auth
In directory talvi:/tmp/cvs-serv2151/lib-auth
Modified Files:
Tag: branch_1_0
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.16.2.1
retrieving revision 1.16.2.2
diff -u -d -r1.16.2.1 -r1.16.2.2
--- auth-server-connection.c 7 Nov 2006 14:55:30 -0000 1.16.2.1
+++ auth-server-connection.c 16 Mar 2007 15:23:51 -0000 1.16.2.2
@@ -204,7 +204,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