Skip to content
Snippets Groups Projects
Commit ee1595dc authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

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

parent 310086de
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment