Mercurial > dovecot > original-hg > dovecot-1.0
changeset 5501:1a87f8495e07 branch_1_0
Don't try to preserve requests across reconnections. The retrying code is
somewhat broken, at least with auth binds.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sat, 29 Dec 2007 04:20:13 +0200 |
parents | 500a21b449e9 |
children | 590f0bc4a823 |
files | src/auth/db-ldap.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/auth/db-ldap.c Fri Dec 28 20:04:44 2007 +0200 +++ b/src/auth/db-ldap.c Sat Dec 29 04:20:13 2007 +0200 @@ -180,7 +180,9 @@ static void ldap_conn_reconnect(struct ldap_connection *conn) { - ldap_conn_close(conn, FALSE); + /* FIXME: we don't really want to flush requests here, but the queue + code is buggy. v1.1 tree fixed this by rewriting the queue code. */ + ldap_conn_close(conn, TRUE); if (db_ldap_connect(conn) < 0) { /* failed to reconnect. fail all requests. */