mirror of
https://github.com/curl/curl.git
synced 2026-07-30 13:28:27 +03:00
multi: allow user callbacks to call curl_multi_assign
Several years ago a change was made to block user callbacks from calling back into the API when not supported (recursive calls). One of the calls blocked was curl_multi_assign. Recently the blocking was extended to the multi interface API, however curl_multi_assign may need to be called from within those user callbacks (eg CURLMOPT_SOCKETFUNCTION). I can't think of any callback where it would be unsafe to call curl_multi_assign so I removed the restriction entirely. Reported-by: Michael Wallner Ref:b46cfbcRef:340bb19Fixes https://github.com/curl/curl/issues/8480 Closes https://github.com/curl/curl/pull/8483
This commit is contained in:
parent
ccc2752ce8
commit
e0dc9765a7
2 changed files with 2 additions and 3 deletions
|
|
@ -48,6 +48,8 @@ The idea here being that this association (socket to private pointer) is
|
|||
something that just about every application that uses this API will need and
|
||||
then libcurl can just as well do it since it already has an internal hash
|
||||
table lookup for this.
|
||||
|
||||
It is acceptable to call this function from your multi callback functions.
|
||||
.SH EXAMPLE
|
||||
.nf
|
||||
/* make our struct pointer associated with socket fd */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue