← Commit list

7791b1629b

Daniel Stenberg
Daniel Stenberg
2026-06-29
SUCCESS Duration: 201s

Subject

CURLSHOPT_(UN)SHARE.md: do not modify shares while in use

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

docs/libcurl/opts/CURLSHOPT_SHARE.md+3 -0
@@ -35,6 +35,9 @@ CURLSHOPT_SHARE(3) multiple times with different data arguments to have
the share object share multiple types of data. Unset a type again by setting
CURLSHOPT_UNSHARE(3).
+Do not add types to a shared object that is being in use. Add them only
+between transfers.
+
If any of the data is to be shared in multiple threads then mutex callbacks
must be set as well. See CURLSHOPT_LOCKFUNC(3) and CURLSHOPT_UNLOCKFUNC(3).
docs/libcurl/opts/CURLSHOPT_UNSHARE.md+3 -0
@@ -36,6 +36,9 @@ below. You can set CURLSHOPT_UNSHARE(3) multiple times with different
data arguments to remove multiple types from the shared object. Add data to
share again with CURLSHOPT_SHARE(3).
+Do not remove types from a shared object that is being in use. Unshare them
+only between transfers.
+
## CURL_LOCK_DATA_COOKIE
Cookie data is no longer shared across the easy handles using this shared