[Date Prev][Date Next]
Re: (ITS#3409) libldap_r optimization
Selon "Kurt@OpenLDAP.org" <Kurt@OpenLDAP.org>:
> I haven't a problem with providing an undocumented macro...
> even though I think folks will enable it when they likely
> shouldn't. I note that some getaddrinfo implementations
> are not as thread safe as their manual pages might suggest.
Sounds interesting. Maybe you can be more precise ?
And what do you think of Python's way to fix it :
/* On systems on which getaddrinfo() is believed to not be thread-safe,
(this includes the getaddrinfo emulation) protect access with a lock. */
#if defined(WITH_THREAD) && (defined(__APPLE__) || defined(__FreeBSD__) || \
defined(__OpenBSD__) || defined(__NetBSD__) ||