dovecot-2.1: timeout_reset(): Don't use cached ioloop_timeval.
dovecot at dovecot.org
dovecot at dovecot.org
Thu Apr 19 23:42:13 EEST 2012
details: http://hg.dovecot.org/dovecot-2.1/rev/266521d59e2c
changeset: 14437:266521d59e2c
user: Timo Sirainen <tss at iki.fi>
date: Thu Apr 19 23:41:59 2012 +0300
description:
timeout_reset(): Don't use cached ioloop_timeval.
Timeouts are sometimes reset after a long running callback. In those cases a
cached timeval may be too far behind.
diffstat:
src/lib/ioloop.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diffs (13 lines):
diff -r 3acc1451ab56 -r 266521d59e2c src/lib/ioloop.c
--- a/src/lib/ioloop.c Thu Apr 19 23:34:41 2012 +0300
+++ b/src/lib/ioloop.c Thu Apr 19 23:41:59 2012 +0300
@@ -206,8 +206,7 @@
void timeout_reset(struct timeout *timeout)
{
- timeout_reset_timeval(timeout, timeout->ioloop->running ? NULL :
- &ioloop_timeval);
+ timeout_reset_timeval(timeout, NULL);
}
static int timeout_get_wait_time(struct timeout *timeout, struct timeval *tv_r,
More information about the dovecot-cvs
mailing list