From: Daniel Stenberg Date: Sun, 28 Jul 2024 14:03:16 +0000 (+0200) Subject: CURLSHOPT_SHARE.md: mention sessions/cookies as not thread-safe X-Git-Tag: curl-8_9_1~29 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=79677caa33116ff25d71b767fcc8bdb18efbe5d3;p=thirdparty%2Fcurl.git CURLSHOPT_SHARE.md: mention sessions/cookies as not thread-safe Sharing of these between threads are apparently also not done safely. Ref: #14290 Reported-by: Aki Sakurai Closes #14292 --- diff --git a/docs/libcurl/opts/CURLSHOPT_SHARE.md b/docs/libcurl/opts/CURLSHOPT_SHARE.md index 78e4781a3b..fa6838cb87 100644 --- a/docs/libcurl/opts/CURLSHOPT_SHARE.md +++ b/docs/libcurl/opts/CURLSHOPT_SHARE.md @@ -41,6 +41,8 @@ Cookie data is shared across the easy handles using this shared object. Note that this does not activate an easy handle's cookie handling. You can do that separately by using CURLOPT_COOKIEFILE(3) for example. +It is not supported to share cookies between multiple concurrent threads. + ## CURL_LOCK_DATA_DNS Cached DNS hosts are shared across the easy handles using this shared @@ -55,6 +57,8 @@ the same server. Note SSL session IDs are reused within the same easy handle by default. Note this symbol was added in 7.10.3 but was not implemented until 7.23.0. +It is not supported to share SSL sessions between multiple concurrent threads. + ## CURL_LOCK_DATA_CONNECT Put the connection cache in the share object and make all easy handles using