1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

Roy Shan fixed a case that prevented ares name resolve timeouts to occur.

This commit is contained in:
Daniel Stenberg 2004-03-31 20:50:01 +00:00
parent 310086deed
commit ee1595dcd5

View File

@ -587,8 +587,9 @@ CURLcode Curl_is_resolved(struct connectdata *conn,
count = select(nfds, &read_fds, &write_fds, NULL,
(struct timeval *)&tv);
if(count)
ares_process(data->state.areschannel, &read_fds, &write_fds);
/* 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);
*dns = NULL;