Aleksander Adamowski writes:

Sam Varshavchik wrote:


That's fair enough…


The patch works as intended :)

However, in my case, there's also a problem with LDAP dying (don't ask...) - I run it in an infinite loop, but to come back after a crash it requires about 1,5 seconds. The problem has been reported to the OpenLDAP team (http://www.openldap.org/its/index.cgi?findid=4390), but from my experience OpenLDAP always has had problems under high workloads.

Would it be difficult to modify this patch (and the one against authlib from the "authldap failing randomly") so that courier sleeps a configured amount of time before retrying?

Not too difficult at all, but I think that falls into the "custom kludge needed for your specific situation only" category.

The existing code in ldapaliasd.c:

               /* If there was a protocol error, close the connection */
               ldapclose();
               ldapconnfailure();


Add a "sleep(5);" there as well.


authldaplib.c in courier-authlib happens to have the same exact code snipped, that can be changed accordingly.

Attachment: pgpc4YGq0pKcg.pgp
Description: PGP signature

Reply via email to