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: Tue, 7 Jan 2020 14:14:08 +0100 (CET)

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

> I'm disappointed with this restriction

Again, this restriction is because how those **3rd party libraries** work.
Coming here and being disspointed at them doesn't help a lot. We don't write
them and we don't control them. We provide a library that can use them.

It would be cool if we could perhaps do a check if curl is built with only
thread-safe 3rd party libs and highlight that in configure or something.

> I've seen exits and pull requests with no follow-up.

Last year alone, more than 150 persons wrote code that was merged into curl.
We all work on fixing issues and adding features we think curl needs. They are
at least 150 different persons that acted on a need they saw or experienced.

If you don't think our roadmap is perfectly aligned with yours, then consider
rolling up your own sleeves and dive in or pay someone to do it.

-- 
  / 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-07