dovecot-2.2: lib-http: Fixed moving delayed request error timeou...

dovecot at dovecot.org dovecot at dovecot.org
Fri Apr 5 19:03:10 EEST 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/e342046d25ca
changeset: 16209:e342046d25ca
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Apr 05 19:03:05 2013 +0300
description:
lib-http: Fixed moving delayed request error timeouts between ioloops.

diffstat:

 src/lib-http/http-client.c |  11 ++++-------
 1 files changed, 4 insertions(+), 7 deletions(-)

diffs (28 lines):

diff -r 1ef57aca7d2f -r e342046d25ca src/lib-http/http-client.c
--- a/src/lib-http/http-client.c	Fri Apr 05 16:37:45 2013 +0300
+++ b/src/lib-http/http-client.c	Fri Apr 05 19:03:05 2013 +0300
@@ -132,6 +132,7 @@
 void http_client_switch_ioloop(struct http_client *client)
 {
 	struct connection *_conn = client->conn_list->connections;
+	struct http_client_host *host;
 
 	/* move connections */
 	/* FIXME: we wouldn't necessarily need to switch all of them
@@ -144,13 +145,9 @@
 		http_client_connection_switch_ioloop(conn);
 	}
 
-	/* move dns lookups */
-	if (client->set.dns_client_socket_path != '\0') {
-		struct http_client_host *host;
-	
-		for (host = client->hosts_list; host != NULL; host = host->next)
-			http_client_host_switch_ioloop(host);
-	}
+	/* move dns lookups and delayed requests */
+	for (host = client->hosts_list; host != NULL; host = host->next)
+		http_client_host_switch_ioloop(host);
 }
 
 void http_client_wait(struct http_client *client)


More information about the dovecot-cvs mailing list