This is a discussion on Re: [courier-users] ldapaliasd failing randomly - continuation of within the Courier-Imap forums, part of the Mail Servers and Related category; This is a MIME-formatted message. If you see this text it means that your E-mail software does not ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
This is a MIME-formatted message. If you see this text it means that your
E-mail software does not support MIME-formatted messages. --=_commodore.email-scan.com-24570-1139268275-0001-2 Content-Type: text/plain; format=flowed; charset="UTF-8" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable X-Mime-Autoconverted: from 8bit to quoted-printable by mimegpg Aleksander Adamowski writes: > Sam Varshavchik wrote: >=20 >> >> That's fair enough=E2=80=A6 >=20 >=20 > The patch works as intended :) >=20 > However, in my case, there's also a problem with LDAP dying (don't=20 > ask...) - I run it in an infinite loop, but to come back after a crash=20 > it requires about 1,5 seconds. The problem has been reported to the=20 > OpenLDAP team (http://www.openldap.org/its/index.cgi?findid=3D4390), bu= t=20 > from my experience OpenLDAP always has had problems under high workload= s. >=20 > Would it be difficult to modify this patch (and the one against authlib=20 > from the "authldap failing randomly") so that courier sleeps a=20 > configured amount of time before retrying? Not too difficult at all, but I think that falls into the "custom kludge=20 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=20 snipped, that can be changed accordingly. --=_commodore.email-scan.com-24570-1139268275-0001-2 Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQBD59qwx9p3GYHlUOIRAsuwAJ9f2n7Jn6ejMgP6eLhT+2 svagSm9QCfcuRS i9GVC9AKXRdCTwIssBeYmZw= =CpWa -----END PGP SIGNATURE----- --=_commodore.email-scan.com-24570-1139268275-0001-2-- ------------------------------------------------------- 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=...486&dat=121642 _______________________________________________ courier-users mailing list courier-users@lists.sourceforge.net Unsubscribe: https://lists.sourceforge.net/lists/.../courier-users |