cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Can't call curl_global_init from a thread -- understanding the architecture

From: Michael Mueller <abaci.mjm_at_gmail.com>
Date: Mon, 6 Oct 2014 11:35:46 -0400

On Mon, Oct 6, 2014 at 5:22 AM, Dan Fandrich <dan_at_coneharvesters.com> wrote:

>
> It's not just the libcurl code that's involved, though. If you read some of the
> other threads on this issue, there can be some subtle and unexpected effects
> when other code uses the same dependencies as libcurl itself.

This appears to be what is happening in our environment: black box
spawns thread for our app; our app calls curl_global_init() which
never returns. For now we're using popen() to invoke a script of curl
commands until we can find a better solution.
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2014-10-06