cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: curl_easy_reset and curl_multi_remove_handle

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 16 Dec 2011 11:39:15 +0100 (CET)

On Mon, 12 Dec 2011, sandeep a wrote:

> once I create a multi-handle using curl_multi_init() then, I do a
> curl_easy_init() followed by curl_multi_add_handle(), followed by
> curl_multi_perform().
>
> Having said that, If I want to re-use the same easy-handle(which I added to
> the multi-handle) do I need to call curl_multi_remove_handle() and then
> again curl_multi_add_handle()

You need to remove it and add it again to make a new transfer, yes.

Presumably you also set some new options after you removed it and before you
add it again.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2011-12-16