[Date Prev][Date Next]
Re: (ITS#3409) libldap_r optimization
>Full_Name: Raphael Ouazana
>Submission from: (NULL) (18.104.22.168)
>On Linux and as indicated in RFC 3493, getaddrinfo must be thread-safe. So I
>think it shouldn't be locked as it is now in os-ip.c
>Not locking it brings really better performances for libldap_r and in particular
>for back-ldap and back-meta.
>I know that on some systems the implementation of getaddrinfo is not
>thread-safe, but I think it should be considered as thread-safe by default, and
>locked for particular cases where it is not (maybe by configure if it is
>possible, or by hard coded #define else).
The analysis looks correct; a reliable way to detect at configure time
if getaddrinfo is reentrant is needed.
SysNet - via Dossi,8 27100 Pavia Tel: +390382573859 Fax: +390382476497