=2D----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Waldo Bastian wrote: >> That could be a problem, yes. But I could find no other way of doing an >> asynchronous lookup without using the undocumented, GNU-specific >> getaddrinfo_a() function. > >Using getaddrinfo_a where available might be a solution if we can get some >guarantee that it will not disappear in the next version of glibc. As I mentioned before, it's GNU-specific, so it's a solution only to system= s=20 based on the GNU libc. Aside from that, it's not documented in the texinfo= =20 documentation (nor is getaddrinfo() for that matter). What I have found is = a=20 proposal paper by Ulrich Drepper from Red Hat: http://labs.redhat.com/drepper/asynchnl.pdf If we choose that way to go, I'd need some insight on how to check that the= =20 result is done. It's possible to use a signal, but that is not recommended= =20 for a library. The other choice is to check whether the job is done at each= =20 Qt loop. Another possibility that the paper suggests is the use of threads. >Oh, maybe I misunderstood then... is the sync code _always_ doing IPv6 > lookups even if we don't have working IPv6 support? No. The not-right-thing is being done at this time. When kdecore is compile= d=20 with IPv6 stack detection or without IPv6 lookup, we change the AF_UNSPEC=20 lookup into an AF_INET one. But that's a compilation-time option that is=20 disabled by default -- it's only a workaround. >That would explain why disabling IPv6 kernel support didn't help for >http://bugs.kde.org/db/32/32233.html This guy seems to have a problem with his DNS server, which is slow for AAA= A=20 lookups (Mozilla is IPv6-enabled too). Another thing: the IPv6 stack detection routine might very create the stack= =20 we're trying to see if it exists. On Linux, that happens if net-pf-10 is=20 aliased to ipv6.o (/etc/modules.conf) =2D --=20 Thiago Macieira - UFOT Registry number: 1001 thiagom@mail.com ICQ UIN: 1967141 PGP/GPG: 0x6EF45358 Registered Linux user #65028 =2D----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE9SaXqM/XwBW70U1gRArN8AJ9qYOZyXvFfzWXa3qP2m1dGxnf2rgCggGF/ 8ZmoyrFNMN0I3TZmNulJCu8=3D =3DlbLA =2D----END PGP SIGNATURE-----