ext_122046 ([identity profile] robbat2.livejournal.com) wrote in [personal profile] robbat2 2006-06-20 10:24 pm (UTC)

Re: configuration workaround

Please re-read the above post.
In specific I said:
The temporary hack: I've commited nss_ldap-250-r1 that changes the default timeouts in the header files, as well documenting them, and the old ones, and even faster ones (read: more dangerous) in /etc/ldap.conf.


If you emerge 250-r1, you will see that nss_reconnect_tries is one of those settings that I have changed. From my patch:
 16 -#define LDAP_NSS_TRIES           5 /* number of sleeping reconnect attempts */
 17 -#define LDAP_NSS_SLEEPTIME       4 /* seconds to sleep; doubled until max */
 18 -#define LDAP_NSS_MAXSLEEPTIME    64    /* maximum seconds to sleep */
 19 +#define LDAP_NSS_TRIES           4 /* number of sleeping reconnect attempts */
 20 +#define LDAP_NSS_SLEEPTIME       1 /* seconds to sleep; doubled until max */
 21 +#define LDAP_NSS_MAXSLEEPTIME    16    /* maximum seconds to sleep */
 22  #define LDAP_NSS_MAXCONNTRIES    2 /* reconnect attempts before sleeping */

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org