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:
Родитель
a8996b9e52
Коммит
18aae32015
|
@ -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 {
|
||||
/*
|
||||
|
|
Загрузка…
Ссылка в новой задаче