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).
This commit is contained in:
Daniel Stenberg 2006-10-18 15:10:49 +00:00
parent a8996b9e52
commit 18aae32015
1 changed files with 4 additions and 0 deletions

View File

@ -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 {
/*