From 8f079b04c103e073e57fa8b85cf69b14b0260ea4 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Wed, 2 Jun 2010 16:15:58 +0100 Subject: [PATCH] lib-dict: Changed proxy client's idle timeout from 1 second to 0. --HG-- branch : HEAD --- src/lib-dict/dict-client.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/lib-dict/dict-client.c b/src/lib-dict/dict-client.c index 3d5add7a85..c2a1a5b5b1 100644 --- a/src/lib-dict/dict-client.c +++ b/src/lib-dict/dict-client.c @@ -14,10 +14,11 @@ #include /* 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 -- 2.47.3