Sean MacLennan <seanm(a)storm.ca> writes:
I have been trying to track down why xemacs beta takes forever to
start when my network is down when XEmacs 21.1 worked just fine.
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'?
It is a more modern API and supports protocols that are not IPv4 - IPv6
specifically, but applications that use `getaddrinfo' and company should
be able to support /any/ protocol that supports streams with no code
changes.
In the context of the specific function, it would make XEmacs work
correctly on an IPv6 only node. :)
For people like me with not-completely-reliable dsl modems, it makes
xemacs beta unusable under X.
An easy way to test this is too change all your nameservers in
/etc/resolv.conf to a bogus ip.
This problem does not show up when you use the old sockets API, but does
when you use the new one? Odd.
You could try adding an entry to /etc/hosts with your machine name and
address...
Daniel
--
My definition of an expert in any field is a person who knows enough about
what's really going on to be scared.
-- P.J. Plauger