]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-dict: Changed proxy client's idle timeout from 1 second to 0.
authorTimo Sirainen <tss@iki.fi>
Wed, 2 Jun 2010 15:15:58 +0000 (16:15 +0100)
committerTimo Sirainen <tss@iki.fi>
Wed, 2 Jun 2010 15:15:58 +0000 (16:15 +0100)
--HG--
branch : HEAD

src/lib-dict/dict-client.c

index 3d5add7a859ed97fbd66611f1a00900a7ecc589c..c2a1a5b5b1736aa74485e82491889b209e8884d5 100644 (file)
 #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