9 Feb
2006
9 Feb
'06
11:56 a.m.
Peter Manckok <peter_manckok@yahoo.es> wrote:
Why donŽt you use the pthread_mutex_lock function instead in order to wait until the connection is unlocked?
Because the LDAP server may be blocked. So waiting for the lock means waiting for 20-30 seconds, which is unacceptabled. The current implementation allows the server to fail over to a second LDAP database if all of the connections to the first one are used. Also, the configurationj limits the number of connections to the LDAP server, to avoid overloading it with RADIUS requests. Once the number of connections are limited, you *have* to fail when all are in use. This makes the server more robust, because it gracefully handles failures, rather than stopping dead. Alan DeKok.