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 ddefa9ec8399582f8fb2daec3870489464670c2f..a1e10d59b1061e2f3396d6e1943c4d3e4dffc59b 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;
         }