From 79677caa33116ff25d71b767fcc8bdb18efbe5d3 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sun, 28 Jul 2024 16:03:16 +0200 Subject: [PATCH] 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 --- docs/libcurl/opts/CURLSHOPT_SHARE.md | 4 ++++ 1 file changed, 4 insertions(+) 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