]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
*-login: Avoid unnecessary "OK Waiting for authentication process to respond"
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Thu, 14 Dec 2017 21:10:22 +0000 (23:10 +0200)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Thu, 14 Dec 2017 21:31:27 +0000 (23:31 +0200)
These happened with SSL connections when the process was starting up.
The ssl-istream was triggering the IO callback, which was thinking that the
client was sending a command. If this happened early on before auth process
connection was finished, this caused several unnecessary notifications to
the client.

src/login-common/client-common.c

index da4dc33ec7927096dc487a28c87fd8fc752e7874..8af187763cf10d64fd3f688c6da6053c0dc75765 100644 (file)
@@ -1083,7 +1083,7 @@ bool client_read(struct client *client)
                return FALSE;
        case 0:
                /* nothing new read */
-               return TRUE;
+               return i_stream_get_data_size(client->input) > 0;
        default:
                /* something was read */
                return TRUE;