freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: "ZIGLIO, Frediano, VF-IT" <Frediano.Ziglio AT vodafone.com>
- To: "FreeTDS Development Group" <freetds AT lists.ibiblio.org>
- Subject: Re: [freetds] Strange TODO
- Date: Fri, 25 Jul 2008 17:22:30 +0200
>
> Thus spake Frediano:
>
> > How to fix all these problems??
> > - we have no safe source for servent_data (private libc
> header is not
> > installed). - we can implement a thread-safe getservbyname locking
> > _servent_mutex directly and call getservbyname_r (not that
> clean) and
> > endservent_r (avoid leaks). - use getaddrinfo, is it
> thread-safe under
> > NetBSD ??
>
> It turns out we're going about this all wrong. Instead of
> getservbyname_r
> et al., we should be using getnameinfo/getaddrinfo. Those should be
> threadsafe on any platform, and are standard.
>
> Do you think it's feasible to abandon getservbyname_r? Do we
> support any
> platform on which getservbyname_r is implemented but
> getaddrinfo is not?
>
> --jkl
>
Yes, we can do. The problem is that some getaddrinfo implementations (FreeBSD
or NetBSD if
I remember) are NOT threadsafe !! But well... perhaps nowadays these
platforms are quite
old...
freddy77
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
-
[freetds] Strange TODO,
ZIGLIO, Frediano, VF-IT, 07/18/2008
- <Possible follow-up(s)>
-
Re: [freetds] Strange TODO,
James K. Lowden, 07/25/2008
-
Re: [freetds] Strange TODO,
ZIGLIO, Frediano, VF-IT, 07/25/2008
- Re: [freetds] Strange TODO, ZIGLIO, Frediano, VF-IT, 07/25/2008
- Re: [freetds] Strange TODO, Christos Zoulas, 07/25/2008
-
Re: [freetds] Strange TODO,
ZIGLIO, Frediano, VF-IT, 07/25/2008
Archive powered by MHonArc 2.6.24.