cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Adding CURL handles to running CURLM

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 15 May 2015 17:34:35 +0200 (CEST)

On Fri, 15 May 2015, Vincas.Razma_at_bentley.com wrote:

> My question - is it valid to call curl_multi_add_handle() for CULRM handle
> that is already running?

Yes it is. You can add or remove an easy handle at any time.

> I'm experiencing problem with HTTPS uploads using C++ CURL based client.
>
> This might be due to my misuse of CURLM, but I'm not sure.

...

> Changing this to use different CURLM handles for each request fixes problem,
> but nullifies idea or background thread that manages transfers.

Sorry I don't get it. How does it nullify what idea?

But in general, if it changes behavior to create new handles instead of
re-using an existing one, it could perhaps indicate a libcurl bug or a bug in
your code that doesn't reset the handle back properly back to the state you
want it.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2015-05-15