dovecot-2.0: lib-dict: Changed proxy client's idle timeout from ...

dovecot at dovecot.org dovecot at dovecot.org
Wed Jun 2 18:16:01 EEST 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/50a0c05fb4e7
changeset: 11455:50a0c05fb4e7
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Jun 02 16:15:58 2010 +0100
description:
lib-dict: Changed proxy client's idle timeout from 1 second to 0.

diffstat:

 src/lib-dict/dict-client.c |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (19 lines):

diff -r df93f0c290ea -r 50a0c05fb4e7 src/lib-dict/dict-client.c
--- a/src/lib-dict/dict-client.c	Wed Jun 02 16:08:07 2010 +0100
+++ b/src/lib-dict/dict-client.c	Wed Jun 02 16:15:58 2010 +0100
@@ -14,10 +14,11 @@
 #include <fcntl.h>
 
 /* Disconnect from dict server after this many milliseconds of idling after
-   sending a command. This timeout is short, because dict server does blocking
-   dict accesses, so it can handle only one client at a time. increasing the
-   timeout increases number of idling dict processes. */
-#define DICT_CLIENT_TIMEOUT_MSECS 1000
+   sending a command. Because dict server does blocking dict accesses, it can
+   handle only one client at a time. This is why the default timeout is zero,
+   so that there won't be many dict processes just doing nothing. Zero means
+   that the socket is disconnected immediately after returning to ioloop. */
+#define DICT_CLIENT_TIMEOUT_MSECS 0
 
 /* Abort dict lookup after this many seconds. */
 #define DICT_CLIENT_READ_TIMEOUT_SECS 30


More information about the dovecot-cvs mailing list