>>>> "Valdis" == Valdis Kletnieks
<Valdis.Kletnieks(a)vt.edu> writes:
Valdis> On Mon, 18 Dec 2000 17:49:36 EST, Sean MacLennan
Valdis> <seanm(a)storm.ca> said:
> It turns out that `unix_canonicalize_host_name' has been
> changed to call `getaddrinfo' instead of the old call to
> `gethostbyname' (via `get_internet_address'). What is the
> advantage of 'getaddrinfo' over 'gethostbyname'?
Valdis> getaddrinfo() supports IPv6 addresses as well.
It's also reentrant, and doesn't return info in a static buffer. Not
to mention having a nice flexible set of flags ...
Valdis> It *should* behave about the same as gethostbyname()
Valdis> regarding network accesses that hang/time out - if one is
Valdis> hanging and the other is not, that's either a config error
Valdis> or software bug.
...which in the default configuration under some releases of
Linux/glibc (for one) cause getaddrinfo() to do some dns lookups (on
localhost, to get its CNAME) that gethostbyname() does not, and these
are causing the hang.
See the thread rooted at
http://www.xemacs.org/list-archives/xemacs-beta/200007/msg00348.html
for more info. There seems to be a claim there the hanging behavior
of getaddrinfo() is somehow more PC than that of gethostbyname().
--
University of Tsukuba Tennodai 1-1-1 Tsukuba 305-8573 JAPAN
Institute of Policy and Planning Sciences Tel/fax: +81 (298) 53-5091
_________________ _________________ _________________ _________________
What are those straight lines for? "XEmacs rules."