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: Imagining a thread-safe curl_global_init
From: Daniel Stenberg via curl-library <curl-library_at_cool.haxx.se>
Date: Sun, 1 Mar 2020 15:05:56 +0100 (CET)
Date: Sun, 1 Mar 2020 15:05:56 +0100 (CET)
On Sun, 1 Mar 2020, Patrick Monnerat via curl-library wrote:
> About curl_version*:
...
> If we change the code to only overwrite struct/buffer bytes with the same
> value, we should make these function thread-safe without having to to
> implement alternate functions. The only thing that I would recommend is to
> declare (at least conceptually) the existing functions result as const.
>
> Among the changes to perform is avoiding the use of functions that store a
> null-terminator after strings (like strcpy, strcat, msnprintf) directly
> targetting the static buffer.
Ah of course! Yes, that certainly sounds totally reasonable and it should be
doable. Thanks!
-- / daniel.haxx.se | Commercial curl support up to 24x7 is available! | 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.htmlReceived on 2020-03-01