mostly-reentrant resolver/getaddrinfo(3)
Jacques A. Vidrine
nectar at FreeBSD.org
Mon Feb 9 05:16:06 PST 2004
[
Brian: I've noticed that in the recent past, I cannot receive email
from you due to
reject: RCPT from mx2.freebsd.org[216.136.204.119]:
450 <green at green.bikeshed.org>:
Sender address rejected: Domain not found
Requests for any green.bikeshed.org RRs results in SERVFAIL.
]
On Sat, Feb 07, 2004 at 07:01:47PM -0500, Brian F. Feldman wrote:
> BTW, a slightly more complete patch that has the diffs for
> /usr/include/resolv.h and also should correctly close the sockets that each
> thread opens for the resolver can be found here:
>
> http://green.homeunix.org/~green/mostly_reentrant_resolver.patch
Cool!
Use pthread_once for creating keys, not a mutex (referring to
res_init_mutex/res_keys_inited).
I prefer to see `_pthread_*' in libc source (rather than `thr_*'), but
that's just me.
Cheers,
--
Jacques Vidrine NTT/Verio SME FreeBSD UNIX Heimdal
nectar at celabo.org jvidrine at verio.net nectar at freebsd.org nectar at kth.se
More information about the freebsd-hackers
mailing list