dovecot-2.2: lib-http: If connection was refused to a host, retr...

dovecot at dovecot.org dovecot at dovecot.org
Tue Mar 5 11:24:57 EET 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/a2d59816565d
changeset: 15993:a2d59816565d
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Mar 05 11:24:46 2013 +0200
description:
lib-http: If connection was refused to a host, retry again on next request.
Instead of never retrying again for the host.

diffstat:

 src/lib-http/http-client-host.c |  3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diffs (13 lines):

diff -r b5a1a40348b8 -r a2d59816565d src/lib-http/http-client-host.c
--- a/src/lib-http/http-client-host.c	Mon Mar 04 16:27:16 2013 +0200
+++ b/src/lib-http/http-client-host.c	Tue Mar 05 11:24:46 2013 +0200
@@ -142,6 +142,9 @@
 	}
 
 	if (peer == NULL) {
+		/* all IPs failed, but retry all of them again on the
+		   next request. */
+		hport->ips_connect_idx = 0;
 		http_client_host_port_error
 			(hport, HTTP_CLIENT_REQUEST_ERROR_CONNECT_FAILED, "Connection failed");
 		if (host->client->ioloop != NULL)


More information about the dovecot-cvs mailing list