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 */
Re: configuration workaround
Date: 2006-06-20 10:24 pm (UTC)In specific I said:
If you emerge 250-r1, you will see that nss_reconnect_tries is one of those settings that I have changed. From my patch: