[Pythonmac-SIG] socket.getaddrinfo problems
Eric Nieuwland
eric.nieuwland at xs4all.nl
Mon Apr 19 16:26:43 EDT 2004
Jack and all,
Doesn't this imply that the Mac version of some socket methods would
better use lookupd?
--eric
On 19-apr-04, at 22:19, Jack Jansen wrote:
> That lookupd manpage sure is interesting, and it really makes you
> wonder why some people see these funny timings in Python...
>
> What I'm now wondering is: could it be that somehow Python bypasses
> lookupd, maybe because of the way it calls getaddrinfo or something
> like that?
> And then the next question is: can we come up with an experiment to
> test this theory? For instance, if you add a hostname entry to the
> NetInfo database, would it show up if getaddrinfo somehow bypasses
> lookupd?
>
> I did the experiment myself (but then, I don't have the problem), and
> I did notice that items that come from flat files or NetInfo take only
> 0.001 second on average, while items that come from DNS take about 25
> times longer (0.025 seconds +/- 0.005 seconds).
> --
> Jack Jansen, <Jack.Jansen at cwi.nl>, http://www.cwi.nl/~jack
> If I can't dance I don't want to be part of your revolution -- Emma
> Goldman
>
>
> _______________________________________________
> Pythonmac-SIG maillist - Pythonmac-SIG at python.org
> http://mail.python.org/mailman/listinfo/pythonmac-sig
>
More information about the Pythonmac-SIG
mailing list