]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
CURLSHOPT_SHARE.md: mention sessions/cookies as not thread-safe
authorDaniel Stenberg <daniel@haxx.se>
Sun, 28 Jul 2024 14:03:16 +0000 (16:03 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 28 Jul 2024 21:13:44 +0000 (23:13 +0200)
Sharing of these between threads are apparently also not done safely.

Ref: #14290
Reported-by: Aki Sakurai
Closes #14292

docs/libcurl/opts/CURLSHOPT_SHARE.md

index 78e4781a3b39f7f19884f52e58c87ae8c82e3cf9..fa6838cb87904780b8aa10b0a5b7ad7314171785 100644 (file)
@@ -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