]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
CURLOPT_SHARE: warn about early remove
authorStefan Eissing <stefan@eissing.org>
Fri, 15 May 2026 12:56:24 +0000 (14:56 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 15 May 2026 14:15:28 +0000 (16:15 +0200)
Add a warning to removing a SHARE from an EASY handle before it is
finished.

Closes #21633

docs/libcurl/opts/CURLOPT_SHARE.md

index 2c6a496593fdc9a04979a695ca129bbf37696aa2..907e4f280519ea67d6038058ecbcf88669d4c910 100644 (file)
@@ -43,6 +43,9 @@ if no share was used.
 
 Set this option to NULL again to stop using that share object.
 
+Warning: adding a *share* and then setting it to NULL while the transfer
+is ongoing is discouraged and may lead to undefined behavior.
+
 # DEFAULT
 
 NULL