Roy Shan fixed a case that prevented ares name resolve timeouts to occur.
This commit is contained in:
Родитель
310086deed
Коммит
ee1595dcd5
|
@ -587,7 +587,8 @@ CURLcode Curl_is_resolved(struct connectdata *conn,
|
||||||
count = select(nfds, &read_fds, &write_fds, NULL,
|
count = select(nfds, &read_fds, &write_fds, NULL,
|
||||||
(struct timeval *)&tv);
|
(struct timeval *)&tv);
|
||||||
|
|
||||||
if(count)
|
/* Call ares_process() unconditonally here, even if we simply timed out
|
||||||
|
above, as otherwise the ares name resolve won't timeout! */
|
||||||
ares_process(data->state.areschannel, &read_fds, &write_fds);
|
ares_process(data->state.areschannel, &read_fds, &write_fds);
|
||||||
|
|
||||||
*dns = NULL;
|
*dns = NULL;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче