From 792fd7ace2a676a7db3e9e339c8044c17a6bfeb5 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Thu, 4 Mar 2010 20:50:05 +0200 Subject: [PATCH] lib-master: Disconnect from auth service immediately after receiving reply. With the current code we can't reuse the connection anyway. --HG-- branch : HEAD --- src/lib-master/master-login.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib-master/master-login.c b/src/lib-master/master-login.c index 7c26fcd499..ed693aed5e 100644 --- a/src/lib-master/master-login.c +++ b/src/lib-master/master-login.c @@ -185,11 +185,12 @@ static void master_login_auth_finish(struct master_login_client *client, 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); -- 2.47.3