mirror of
https://github.com/moparisthebest/curl
synced 2024-08-13 17:03:50 -04:00
failing to resolve a name using ares must Curl_disconnect() the handle
properly or risk getting into trouble!
This commit is contained in:
parent
f40467638d
commit
8aa2894bfb
@ -375,6 +375,7 @@ CURLMcode curl_multi_perform(CURLM *multi_handle, int *running_handles)
|
|||||||
|
|
||||||
if(CURLE_OK != easy->result) {
|
if(CURLE_OK != easy->result) {
|
||||||
/* failure detected */
|
/* failure detected */
|
||||||
|
Curl_disconnect(easy->easy_conn); /* disconnect properly */
|
||||||
easy->easy_conn = NULL; /* no more connection */
|
easy->easy_conn = NULL; /* no more connection */
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user