]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-master: If net_connect_unix() fails with EAGAIN, point to a wiki link for reasons.
authorTimo Sirainen <tss@iki.fi>
Mon, 2 Sep 2013 14:06:49 +0000 (17:06 +0300)
committerTimo Sirainen <tss@iki.fi>
Mon, 2 Sep 2013 14:06:49 +0000 (17:06 +0300)
src/lib-master/master-auth.c
src/lib-master/master-login.c

index 1f105eeefe220e2d45b9c7ce7814154719bb6338..057e64d91e704ebddd4f76e93902e93dd92babfb 100644 (file)
@@ -186,7 +186,9 @@ void master_auth_request(struct master_auth *auth, int fd,
        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;
        }
index 5988bbec32f0c491402e825bc0cac1b32d86fca3..936c7c52a44957edc4cd4dd4ad7dac85f8c7365d 100644 (file)
@@ -307,8 +307,9 @@ static int master_login_postlogin(struct master_login_client *client,
 
        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;
        }