When a connection is re-used, it can be flagged for re-use before the name
authorDaniel Stenberg <daniel@haxx.se>
Wed, 18 Oct 2006 15:10:49 +0000 (15:10 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 18 Oct 2006 15:10:49 +0000 (15:10 +0000)
resolving is completed so we must make sure to survive it and mark the
connection as async (ie not yet connected completely).

lib/url.c

index 1a5ae15..850a945 100644 (file)
--- a/lib/url.c
+++ b/lib/url.c
@@ -3622,6 +3622,10 @@ static CURLcode CreateConnection(struct SessionHandle *data,
     infof(data, "Re-using existing connection! (#%ld) with host %s\n",
           conn->connectindex,
           conn->bits.httpproxy?conn->proxy.dispname:conn->host.dispname);
+    if(!conn->dns_entry) {
+      infof(data, "... but it is not resolved yet!\n");
+      *async = TRUE;
+    }
   }
   else {
     /*