[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: ldap_int_sasl_init

At 06:17 AM 2002-07-16, Luke Howard wrote:
>ldap_int_sasl_init() notes that it is not thread-safe.
>Has anyone thought
>about using pthread_once() in libldap_r to protect sasl_initialized?

That wouldn't allow any additional concurrency than presently

>seeing a case where sasl_client_init() is getting called concurrently from
>two different threads using the LDAP client library and crashing.

Presently, session initialization must be serialized
by the application.