mirror of
https://github.com/curl/curl.git
synced 2026-07-25 19:37:17 +03:00
Based on a patch provided by Siddhartha Prakash Jain. In Curl_resolv() when
my_getaddrinfo() has been called (and wait has been set to TRUE), we check if the name already is resolved and if so don't return wait status to the parent. This can happen with IP-only names.
This commit is contained in:
parent
b864e25011
commit
343291ce37
3 changed files with 23 additions and 13 deletions
|
|
@ -360,12 +360,12 @@ CURLMcode curl_multi_perform(CURLM *multi_handle, int *running_handles)
|
|||
case CURLM_STATE_WAITRESOLVE:
|
||||
/* awaiting an asynch name resolve to complete */
|
||||
{
|
||||
bool done;
|
||||
struct Curl_dns_entry *dns;
|
||||
|
||||
/* check if we have the name resolved by now */
|
||||
easy->result = Curl_is_resolved(easy->easy_conn, &done);
|
||||
easy->result = Curl_is_resolved(easy->easy_conn, &dns);
|
||||
|
||||
if(done) {
|
||||
if(dns) {
|
||||
/* Perform the next step in the connection phase, and then move on
|
||||
to the WAITCONNECT state */
|
||||
easy->result = Curl_async_resolved(easy->easy_conn);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue