curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: curl not thread-safe

From: Daniel Stenberg via curl-library <curl-library_at_cool.haxx.se>
Date: Thu, 9 Jan 2020 12:06:15 +0100 (CET)

On Thu, 9 Jan 2020, Thierry HUCAHRD wrote:

> Nikos' answer (on GnuTls: https://gitlab.com/gnutls/gnutls/issues/900)
> implies that if a program doesn't call curl_global_init, and
> curl_easy_cleanup doesn't call it either. Then libcurl would be thread-safe.

Yes I think it might be, if

A) you don't also build with *another* 3rd party lib that has a thread-unsafe
init call

and

B) the CURL_GLOBAL_ACK_EINTR caveat doesn't hit you:
https://curl.haxx.se/mail/lib-2020-01/0030.html

-- 
  / daniel.haxx.se | Get the best commercial curl support there is - from me
                   | Private help, bug fixes, support, ports, new features
                   | https://www.wolfssl.com/contact/
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2020-01-09