dovecot-2.2: lib-master: If net_connect_unix() fails with EAGAIN...

dovecot at dovecot.org dovecot at dovecot.org
Mon Sep 2 17:07:13 EEST 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/a4bfccbc2477
changeset: 16704:a4bfccbc2477
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Sep 02 17:06:49 2013 +0300
description:
lib-master: If net_connect_unix() fails with EAGAIN, point to a wiki link for reasons.

diffstat:

 src/lib-master/master-auth.c  |  4 +++-
 src/lib-master/master-login.c |  5 +++--
 2 files changed, 6 insertions(+), 3 deletions(-)

diffs (29 lines):

diff -r 470153d92662 -r a4bfccbc2477 src/lib-master/master-auth.c
--- a/src/lib-master/master-auth.c	Thu Aug 29 16:42:55 2013 +0300
+++ b/src/lib-master/master-auth.c	Mon Sep 02 17:06:49 2013 +0300
@@ -186,7 +186,9 @@
 	conn->fd = net_connect_unix_with_retries(auth->path,
 						 SOCKET_CONNECT_RETRY_MSECS);
 	if (conn->fd == -1) {
-		i_error("net_connect_unix(%s) failed: %m", auth->path);
+		i_error("net_connect_unix(%s) failed: %m%s",
+			auth->path, errno != EAGAIN ? "" :
+			" - http://wiki2.dovecot.org/SocketUnavailable");
 		master_auth_connection_deinit(&conn);
 		return;
 	}
diff -r 470153d92662 -r a4bfccbc2477 src/lib-master/master-login.c
--- a/src/lib-master/master-login.c	Thu Aug 29 16:42:55 2013 +0300
+++ b/src/lib-master/master-login.c	Mon Sep 02 17:06:49 2013 +0300
@@ -307,8 +307,9 @@
 
 	fd = net_connect_unix_with_retries(login->postlogin_socket_path, 1000);
 	if (fd == -1) {
-		i_error("net_connect_unix(%s) failed: %m",
-			login->postlogin_socket_path);
+		i_error("net_connect_unix(%s) failed: %m%s",
+			login->postlogin_socket_path, errno != EAGAIN ? "" :
+			" - http://wiki2.dovecot.org/SocketUnavailable");
 		return -1;
 	}
 


More information about the dovecot-cvs mailing list