Mercurial > dovecot > original-hg > dovecot-2.2
changeset 16704:a4bfccbc2477
lib-master: If net_connect_unix() fails with EAGAIN, point to a wiki link for reasons.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 02 Sep 2013 17:06:49 +0300 |
parents | 470153d92662 |
children | a3f0aca52d6f |
files | src/lib-master/master-auth.c src/lib-master/master-login.c |
diffstat | 2 files changed, 6 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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; }
--- 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; }