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: Thierry HUCAHRD via curl-library <curl-library_at_cool.haxx.se>
Date: Tue, 07 Jan 2020 17:02:03 +0100

Le 2020-01-07 16:55, Tim Rühsen a écrit :
> On 1/7/20 2:14 PM, Daniel Stenberg via curl-library wrote:
>> On Tue, 7 Jan 2020, Thierry HUCAHRD wrote:
>>
>>> If I use libcurl with GnuTLS I am thread-safe, even in a plugin?
>>
>> It depends.
>>
>> If you use GnuTLS from before 3.3.0, gnutls_global_init() needs to be
>> called by libcurl at init time and that function is documented to not
>> be
>> thread safe.
>>
>> For GnuTLS 3.3.0 and later I *suspect* it inits itself in a
>> thread-safe
>> manner. Their docs isn't very clear on this subject:
>> https://gnutls.org/manual/html_node/Initialization.html#Initialization
>
> Created https://gitlab.com/gnutls/gnutls/issues/900 :-)
>
> Regards, Tim
Thanks Tim!
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2020-01-07