cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: CURL multi handle with easy handles from different threads

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 10 Jul 2015 11:38:54 +0200 (CEST)

On Fri, 10 Jul 2015, Ray Satiro via curl-library wrote:

> Generally there is something in libcurl I'm unclear about (I've asked on the
> list before but didn't get a reply addressing it) which is it seems that it's
> acceptable behavior for curl_multi_perform to always be performing and not
> return for extended periods of time and I thought in that case you can't call
> multi_add_handle from another thread during that time.

There's no guarantee that this will work. As all internals are lock-free and
assume exclusive access to lists etc there's a risk for data corruption if you
do this.

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