dovecot-2.2: director: Don't restart request timeout when direct...
dovecot at dovecot.org
dovecot at dovecot.org
Wed Nov 12 04:59:53 UTC 2014
details: http://hg.dovecot.org/dovecot-2.2/rev/26679856fbd5
changeset: 18066:26679856fbd5
user: Timo Sirainen <tss at iki.fi>
date: Wed Nov 12 06:46:45 2014 +0200
description:
director: Don't restart request timeout when director state changes.
If the state keeps changing all the time we'll never return timeouts for the
requests.
diffstat:
src/director/main.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r b9df3d654710 -r 26679856fbd5 src/director/main.c
--- a/src/director/main.c Wed Nov 12 03:29:04 2014 +0200
+++ b/src/director/main.c Wed Nov 12 06:46:45 2014 +0200
@@ -136,7 +136,7 @@
array_clear(&dir->pending_requests);
array_append_array(&dir->pending_requests, &new_requests);
- if (dir->to_request != NULL)
+ if (dir->to_request != NULL && array_count(&new_requests) == 0)
timeout_remove(&dir->to_request);
}
More information about the dovecot-cvs
mailing list