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
Родитель a8996b9e52
Коммит 18aae32015
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

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