dovecot-2.2: lib-master: Crashfix to earlier anvil query timeout...

dovecot at dovecot.org dovecot at dovecot.org
Wed Mar 11 18:39:38 UTC 2015


details:   http://hg.dovecot.org/dovecot-2.2/rev/83662ff4d93d
changeset: 18332:83662ff4d93d
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Mar 11 20:38:52 2015 +0200
description:
lib-master: Crashfix to earlier anvil query timeout change.

diffstat:

 src/lib-master/anvil-client.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (25 lines):

diff -r 1bccf90e54ca -r 83662ff4d93d src/lib-master/anvil-client.c
--- a/src/lib-master/anvil-client.c	Wed Mar 11 20:02:20 2015 +0200
+++ b/src/lib-master/anvil-client.c	Wed Mar 11 20:38:52 2015 +0200
@@ -209,10 +209,6 @@
 			return -1;
 	}
 
-	if (client->to_query == NULL) {
-		client->to_query = timeout_add(ANVIL_QUERY_TIMEOUT_MSECS,
-					       anvil_client_timeout, client);
-	}
 	iov[0].iov_base = cmd;
 	iov[0].iov_len = strlen(cmd);
 	iov[1].iov_base = "\n";
@@ -241,6 +237,10 @@
 	anvil_query->callback = callback;
 	anvil_query->context = context;
 	aqueue_append(client->queries, &anvil_query);
+	if (client->to_query == NULL) {
+		client->to_query = timeout_add(ANVIL_QUERY_TIMEOUT_MSECS,
+					       anvil_client_timeout, client);
+	}
 	return anvil_query;
 }
 


More information about the dovecot-cvs mailing list