cURL / Mailing Lists / curl-library / Single Mail

curl-library

DNS Cache on Windows XP

From: Tracy Boehrer <tboehrer_at_calltower.com>
Date: Fri, 18 Jul 2003 17:27:27 -0700

While in the process of tracking another bug (possibly not in libcurl), I ran into a problem with disabling the DNS cache on Windows XP (using CURLOPT_DNS_CACHE_TIMEOUT).
 
I had introduced into a Java servlet a loop that would cause the TIMEOUT on libcurl would be hit. This seems to work fine, but the very next request (using the same curl handle) cause an exception in Curl_connecthost, line 604:
 
     if(!remotehost->addr->h_addr_list[0]) {
 
It seems that 'remotehost->addr' is null.
 
As soon as I turn DNS cache back on, it works fine.
 
Also, previously we were using 7.10.1-1, and did not experience this problem.
 
One more also... If I force a delay (say 45-60 seconds) after the timeout (before doing the next request), it seems to work fine.
 
 

-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
Received on 2003-07-19