[Kopete-devel] [Bug 50279] Kopete won't connect if started before Internet connection

Martijn Klingens martijn at martijn.homeip.net
Thu Nov 7 08:49:53 GMT 2002


On Wed, 6 Nov 2002, Waldo Bastian wrote:
> We call res_init() if we get a lookup error to force a re-read of
> /etc/resolv.conf Can it be that you use asynchronous lookups in
> Kopete? I think the asynchronous lookup doesn't call res_init() when
> it fails.
>
> See KExtendedSocket::doLookup()

Last line of msnsocket.cpp, method MSNSocket::connect:

	m_socket->startAsyncConnect();

That explains a whole lot if it doesn't do res_init here :-)

Looking at the code it looks to me that startAsyncConnect() still calls
doLookup() internally though, but not in all cases.

Can I consider this a bug in KExtendedSocket and reassign this bug
there, or am I supposed to handle this some way in Kopete itself?
-- 
Martijn






More information about the kde-core-devel mailing list