cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Re :Re: Need more information on handling ares with libcurl

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sun, 2 Nov 2008 19:54:19 +0100 (CET)

On Sun, 2 Nov 2008, vishnu sankar wrote:

Let me first mention that your mail was completely garbled to me since you
ONLY included HTML and we explicitly say we want text-only mails on this list.

Please correct this as I don't think it's my job to put a lot of effort to
read mails asking for (my) help.

> > If so, can you provide us with the source for an app that repeats this
> > problem?

It seems you missed the question above, and I'd say it is quite important
here.

> I am using latest curl and ares builds .The timeout is working fine if the
> resolver network is reachable (configured in resolv.conf).In this case we
> recieve some data from resovler server and multi perform in again called
> which calls the resolver functctions if the timeout has occured or not.Is
> time out handled in case the resolver network is unreachable There is no
> response from the resolver as the resolver network is not reachable..Due to
> which the file descriptors for which i registered for response are! not
> receving any response and multi perform function is not called .Since multi
> perform function is not called , the timeout is not handled. The only change
> i have done is to reproduce this is i am configuring my resolver to an u
> nreachable network. For a resolver which is reachable, timeouts are
> working fine.

So you haven't explained how you use libcurl thus I can only guess: it sounds
like you're using the multi_socket() API but you haven't registered a timeout
callback properly and then you of course won't know when things timeout.

-- 
  / daniel.haxx.se
Received on 2008-11-02