From: Timo Sirainen Date: Tue, 10 Aug 2010 13:51:09 +0000 (+0100) Subject: ldap: Reduce max. queued request count to 8. X-Git-Tag: 2.0.rc5~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4f7c150ea0fb986d229379cda622cdcb2d827fd2;p=thirdparty%2Fdovecot%2Fcore.git ldap: Reduce max. queued request count to 8. OpenLDAP seems to default to 16 worker threads. --- diff --git a/src/auth/db-ldap.h b/src/auth/db-ldap.h index 0b51b85b74..bd18e82600 100644 --- a/src/auth/db-ldap.h +++ b/src/auth/db-ldap.h @@ -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