cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: curl_easy_cleanup with curl_multi_info_read

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Thu, 19 Feb 2004 23:20:38 +0100 (CET)

On Thu, 19 Feb 2004, codemastr wrote:

> The problem is however that there really isn't very good examples available
> for the multi interface

I can't but agree. I'm always open for example code, but I rarely get any.

> My guess is libcurl doesn't like that I'm cleaning up the easy handle from
> within the curl_multi_info_read loop. Am I correct in this assumption?

Yes.

> If I changed that to be:
>
> curl_multi_remove_handle(multihandle, msg->easy_handle);
> curl_easy_cleanup(msg->easy_handle);
>
> Would that be correct?

That would be correct, AFAIR.

-- 
    Daniel Stenberg -- http://curl.haxx.se/ -- http://daniel.haxx.se/
   [[ Do not send mails to this email address. They won't reach me. ]]
Received on 2004-02-19