aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2006-10-18 15:10:49 +0000
committerDaniel Stenberg <daniel@haxx.se>2006-10-18 15:10:49 +0000
commit18aae320151b0c0912b6569762aa3f2f9b17140c (patch)
tree4a85be4916f53e6f00118842d41c3cbc82f8e480 /lib
parenta8996b9e5268f8ca33deca21e1375a8887c50d40 (diff)
When a connection is re-used, it can be flagged for re-use before the name
resolving is completed so we must make sure to survive it and mark the connection as async (ie not yet connected completely).
Diffstat (limited to 'lib')
-rw-r--r--lib/url.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/url.c b/lib/url.c
index 1a5ae15e7..850a9451f 100644
--- 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 {
/*