]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
ldap: Reduce max. queued request count to 8.
authorTimo Sirainen <tss@iki.fi>
Tue, 10 Aug 2010 13:51:09 +0000 (14:51 +0100)
committerTimo Sirainen <tss@iki.fi>
Tue, 10 Aug 2010 13:51:09 +0000 (14:51 +0100)
OpenLDAP seems to default to 16 worker threads.

src/auth/db-ldap.h

index 0b51b85b7446c48f46a9581131d479b001e1be84..bd18e82600adb583ce1b23211bcb8edb8b42bb1a 100644 (file)
@@ -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