dovecot-2.0: ldap: Reduce max. queued request count to 8.

dovecot at dovecot.org dovecot at dovecot.org
Tue Aug 10 16:51:12 EEST 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/3cda9f2f48bd
changeset: 11973:3cda9f2f48bd
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Aug 10 14:51:09 2010 +0100
description:
ldap: Reduce max. queued request count to 8.
OpenLDAP seems to default to 16 worker threads.

diffstat:

 src/auth/db-ldap.h |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 7f550a7bd9d7 -r 3cda9f2f48bd src/auth/db-ldap.h
--- a/src/auth/db-ldap.h	Tue Aug 10 13:03:20 2010 +0100
+++ b/src/auth/db-ldap.h	Tue Aug 10 14:51:09 2010 +0100
@@ -8,7 +8,7 @@
 /* Maximum number of requests in queue. After this new requests are dropped. */
 #define DB_LDAP_MAX_QUEUE_SIZE 1024
 /* Maximum number of pending requests before delaying new requests. */
-#define DB_LDAP_MAX_PENDING_REQUESTS 128
+#define DB_LDAP_MAX_PENDING_REQUESTS 8
 /* If LDAP connection is down, fail requests after waiting for this long. */
 #define DB_LDAP_REQUEST_DISCONNECT_TIMEOUT_SECS 4
 /* If request is still in queue after this many seconds and other requests


More information about the dovecot-cvs mailing list