Marek Miska
2009-Aug-03 07:34 UTC
[Dovecot] Bug - dovecot-auth hangs in ldap query. 1.1.16 (also in 1.2.2)
dovecot-auth hangs when many (>128) LDAP queries are submited simultaneously. (for example via pop3 benchmarking tool). Bug is in src/auth/db-ldap.c:db_ldap_request_queue_next if (queue_size > DB_LDAP_MAX_PENDING_REQUESTS) { /* wait until server has replied to some requests */ return FALSE; } (queue_size is total queue size, not only queries sent to LDAP server.) I think this condition should be: if (conn->pending_count >= DB_LDAP_MAX_PENDING_REQUESTS) {
Timo Sirainen
2009-Aug-07 18:46 UTC
[Dovecot] Bug - dovecot-auth hangs in ldap query. 1.1.16 (also in 1.2.2)
On Mon, 2009-08-03 at 09:34 +0200, Marek Miska wrote:> Bug is in src/auth/db-ldap.c:db_ldap_request_queue_next > > if (queue_size > DB_LDAP_MAX_PENDING_REQUESTS) { > /* wait until server has replied to some requests */ > return FALSE; > } > > (queue_size is total queue size, not only queries sent to LDAP server.) > > I think this condition should be: > > if (conn->pending_count >= DB_LDAP_MAX_PENDING_REQUESTS) {Thanks, committed: http://hg.dovecot.org/dovecot-1.2/rev/a8bd5b0b6bb9 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20090807/8a165587/attachment-0002.bin>