curl-library
Re: Query regarding libcurl DNS cache..
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 23 Apr 2012 23:42:02 +0200 (CEST)
Date: Mon, 23 Apr 2012 23:42:02 +0200 (CEST)
On Mon, 23 Apr 2012, sukanya c wrote:
> If the DNS cache entry becomes invalid because of server IP address change,
> then what error will be curl_easy_perform() function return to application?
That would result in libcurl using a wrong (old) address to a host for a given
name. So it would entirely depend on what is then on that old address. If
there's a new host there, libcurl will connect to that instead of the correct
one. If not, or if if just doesn't listen to the same port number, libcurl
will get a connect failure.
> Does libcurl retry incase of DNS cache failure.
No, as it can't really tell if it was a "DNS cache failure" or just a normal
one...
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2012-04-23