]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
CURLMOPT_SOCKETFUNCTION.md: add advice for socket callback invocation times
authorStefan Eissing <stefan@eissing.org>
Sun, 23 Feb 2025 09:05:41 +0000 (10:05 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 23 Feb 2025 23:05:56 +0000 (00:05 +0100)
Explain when a registered socket callback may get invoked to make user
better aware on how to handle it.

Closes #16441

docs/libcurl/opts/CURLMOPT_SOCKETFUNCTION.md

index 60c1185ea3ee65888ebcf1f7ff7d96158391647c..fae15d58a2a9035719379019cd78851d3995efd0 100644 (file)
@@ -47,6 +47,11 @@ libcurl then expects the application to monitor the sockets for the specific
 activities and tell libcurl again when something happens on one of them. Tell
 libcurl by calling curl_multi_socket_action(3).
 
+This callback may get invoked at any time when interacting with libcurl.
+This may even happen after all transfers are done and is *likely* to
+happen *during* a call to curl_multi_cleanup(3) when cached connections
+are shut down.
+
 # CALLBACK ARGUMENTS
 
 *easy* identifies the specific transfer for which this update is related.