failing to resolve a name using ares must Curl_disconnect() the handle
authorDaniel Stenberg <daniel@haxx.se>
Sun, 21 Sep 2003 23:10:47 +0000 (23:10 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 21 Sep 2003 23:10:47 +0000 (23:10 +0000)
properly or risk getting into trouble!

lib/multi.c

index ddefa9e..a1e10d5 100644 (file)
@@ -375,6 +375,7 @@ CURLMcode curl_multi_perform(CURLM *multi_handle, int *running_handles)
         
         if(CURLE_OK != easy->result) {
           /* failure detected */
+          Curl_disconnect(easy->easy_conn); /* disconnect properly */
           easy->easy_conn = NULL;           /* no more connection */
           break;
         }