diff options
author | Daniel Stenberg <daniel@haxx.se> | 2006-10-18 15:10:49 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2006-10-18 15:10:49 +0000 |
commit | 18aae320151b0c0912b6569762aa3f2f9b17140c (patch) | |
tree | 4a85be4916f53e6f00118842d41c3cbc82f8e480 /lib | |
parent | a8996b9e5268f8ca33deca21e1375a8887c50d40 (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.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 { /* |