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?

This would make sense in some scenarios, like LDAP crashing and
automatically restarting, or some temporary network congestions between
the MTA and LDAP server, or network switches acting funny...

E.g. the RETRY_SLEEP would default to 0, but could be configured to any
amount of seconds (configurable separately in /etc/authlib/authldaprc
and /etc/courier/ldapaliasrc).

--
Best Regards,
   Aleksander Adamowski
       GG#: 274614
       ICQ UIN: 19780575
        http://olo.ab.altkom.pl



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to