dovecot-2.0: lib-master: Disconnect from auth service immediatel...

dovecot at dovecot.org dovecot at dovecot.org
Thu Mar 4 20:50:08 EET 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/ada20715c470
changeset: 10837:ada20715c470
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Mar 04 20:50:05 2010 +0200
description:
lib-master: Disconnect from auth service immediately after receiving reply.
With the current code we can't reuse the connection anyway.

diffstat:

 src/lib-master/master-login.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r 81e085f9bd75 -r ada20715c470 src/lib-master/master-login.c
--- a/src/lib-master/master-login.c	Thu Mar 04 20:19:02 2010 +0200
+++ b/src/lib-master/master-login.c	Thu Mar 04 20:50:05 2010 +0200
@@ -185,11 +185,12 @@
 		master_login_auth_disconnect(login->auth);
 
 		master_service_close_config_fd(service);
-		master_login_conn_deinit(&conn);
 	} else if (login->stopping) {
 		/* try stopping again */
 		master_login_stop(login);
 	}
+	/* FIXME: currently we create a separate connection for each request */
+	master_login_conn_deinit(&conn);
 
 	client->fd = -1;
 	master_login_client_free(&client);


More information about the dovecot-cvs mailing list