]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
When a resolve is made on a pipelined connection we need to detect it properly
authorDaniel Stenberg <daniel@haxx.se>
Fri, 20 Oct 2006 12:25:39 +0000 (12:25 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 20 Oct 2006 12:25:39 +0000 (12:25 +0000)
(when the resoling isn't completede yet) and not confuse it with a simple
connection re-use (non-pipelined).

lib/url.c
lib/urldata.h

index 4bb4234f733b4897ec1a4c0811dd006b75d202b9..65453155c3967ac9855402c6696f53e8106254cd 100644 (file)
--- a/lib/url.c
+++ b/lib/url.c
@@ -3623,7 +3623,7 @@ static CURLcode CreateConnection(struct SessionHandle *data,
           conn->connectindex,
           conn->bits.httpproxy?conn->proxy.dispname:conn->host.dispname);
 #ifdef CURLRES_ASYNCH
-    if(!conn->dns_entry) {
+    if(!conn->ip_addr_str) {
       infof(data, "... but it is not resolved yet!\n");
       *async = TRUE;
     }
index f701fe96ceac7956b93cd4e3cb3c99f9bb2ed1da..c1b52dbf7cea3afa7d30b6ff3dab6f802e22e433 100644 (file)
@@ -684,7 +684,8 @@ struct connectdata {
 
   /* 'dns_entry' is the particular host we use. This points to an entry in the
      DNS cache and it will not get pruned while locked. It gets unlocked in
-     Curl_done() */
+     Curl_done(). This entry will be NULL if the connection is re-used as then
+     there is no name resolve done. */
   struct Curl_dns_entry *dns_entry;
 
   /* 'ip_addr' is the particular IP we connected to. It points to a struct