cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Re: ares

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 22 Sep 2003 01:13:08 +0200 (CEST)

On Sun, 21 Sep 2003, Giuseppe Attardi wrote:

> Here is a small program that exhibits the behavior. It is a little unusual
> since it reuses the same handle, though it works fine without ARES.

Try this patch, it seems to do the trick for me (I've also committed it so you
can do a CVS update to get it). With this applied your test program runs fine
in my end:

diff -u -r1.35 multi.c
--- multi.c 11 Sep 2003 22:14:29 -0000 1.35
+++ multi.c 21 Sep 2003 23:10:11 -0000
@@ -375,6 +375,7 @@

         if(CURLE_OK != easy->result) {
           /* failure detected */
+ Curl_disconnect(easy->easy_conn); /* disconnect properly */
           easy->easy_conn = NULL; /* no more connection */
           break;
         }

-- 
 Daniel Stenberg -- curl: been grokking URLs since 1998
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2003-09-22