dovecot-1.2: Auth worker: Make sure we don't abort a lookup too ...

dovecot at dovecot.org dovecot at dovecot.org
Wed Oct 22 01:07:53 EEST 2008


details:   http://hg.dovecot.org/dovecot-1.2/rev/b8b75dcb3531
changeset: 8309:b8b75dcb3531
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Oct 22 01:07:48 2008 +0300
description:
Auth worker: Make sure we don't abort a lookup too early.

diffstat:

1 file changed, 1 insertion(+), 1 deletion(-)
src/auth/auth-worker-server.c |    2 +-

diffs (12 lines):

diff -r 9c7c9fa381d4 -r b8b75dcb3531 src/auth/auth-worker-server.c
--- a/src/auth/auth-worker-server.c	Wed Oct 22 01:07:36 2008 +0300
+++ b/src/auth/auth-worker-server.c	Wed Oct 22 01:07:48 2008 +0300
@@ -239,7 +239,7 @@ static void worker_input(struct auth_wor
 			auth_worker_handle_request(conn, request, line + 1);
 	}
 
-	if (conn->requests_left == 0) {
+	if (conn->requests_left == 0 && array_count(&conn->requests) == 0) {
 		auth_worker_destroy(conn, "Max requests limit");
 		if (idle_count == 0)
 			auth_worker_create();


More information about the dovecot-cvs mailing list