Mercurial > dovecot > core-2.2
changeset 22568:c50f46578b86
director: Ignore CONNECT requests to hosts that have been removed already
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Thu, 14 Sep 2017 17:59:05 +0300 |
parents | c27c8ce1d534 |
children | 718e59dd23dd |
files | src/director/director-connection.c |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/director/director-connection.c Thu Sep 14 17:57:29 2017 +0300 +++ b/src/director/director-connection.c Thu Sep 14 17:59:05 2017 +0300 @@ -1645,6 +1645,12 @@ director_reconnect_after_wrong_connect(conn); return TRUE; } + if (host->removed) { + dir_debug("Ignoring CONNECT request to %s (director is removed)", + host->name); + director_reconnect_after_wrong_connect(conn); + return TRUE; + } /* reset failure timestamp so we'll actually try to connect there. */ host->last_network_failure = 0;