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_version_info() thread-safety
- Contemporary messages sorted: [ by date ] [ by thread ] [ by subject ] [ by author ] [ by messages with attachments ]
From: Daniel Stenberg via curl-library <curl-library_at_lists.haxx.se>
Date: Sat, 24 Sep 2022 23:07:42 +0200 (CEST)
On Sat, 24 Sep 2022, Patrick Monnerat via curl-library wrote:
> I just noticed curl_version_info() is not thread-safe when compiled with
> multi-ssl backends because the HTTPS-proxy feature bit is computed at
> run-time and may change between calls.
>
> This is the case until the effective SSL backend is selected
> (curl_global_sslset() or curl_global_init()).
Except of course that curl_global_sslset is documented to:
"This function can only be used to select an SSL backend once, and it must be
called before curl_global_init."
... and if that is followed, how can it change?
Date: Sat, 24 Sep 2022 23:07:42 +0200 (CEST)
On Sat, 24 Sep 2022, Patrick Monnerat via curl-library wrote:
> I just noticed curl_version_info() is not thread-safe when compiled with
> multi-ssl backends because the HTTPS-proxy feature bit is computed at
> run-time and may change between calls.
>
> This is the case until the effective SSL backend is selected
> (curl_global_sslset() or curl_global_init()).
Except of course that curl_global_sslset is documented to:
"This function can only be used to select an SSL backend once, and it must be
called before curl_global_init."
... and if that is followed, how can it change?
-- / daniel.haxx.se | Commercial curl support up to 24x7 is available! | Private help, bug fixes, support, ports, new features | https://curl.se/support.html -- Unsubscribe: https://lists.haxx.se/listinfo/curl-library Etiquette: https://curl.se/mail/etiquette.htmlReceived on 2022-09-24