cURL / Mailing Lists / curl-library / Single Mail

curl-library

ares and CURLOPT_ERRORBUFFER

From: Jeff Pohlmeyer <yetanothergeek_at_yahoo.com>
Date: Sat, 30 Aug 2003 04:05:29 -0700 (PDT)

It looks like the error buffer is not getting filled when
Curl_wait_for_resolv() fails - maybe this would fix it ?

--- hostip.c Sat Aug 30 05:58:52 2003
+++ hostip.c.fix Sat Aug 30 06:01:05 2003
@@ -466,9 +466,10 @@
 
   if(!conn->async.dns) {
     /* a name was not resolved */
- if(conn->async.done)
+ if(conn->async.done) {
+ failf(data, "Could not resolve host: %s", conn->name);
       rc = CURLE_COULDNT_RESOLVE_HOST;
- else
+ } else
       rc = CURLE_OPERATION_TIMEDOUT;
 
     /* close the connection, since we can't return failure here without

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2003-08-30