Replies: 1 comment
-
This can become an issue if the callback calls another libcurl function (after |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
{{title}}
-
PR #12046 added to the documentation that curl_easy_pause could be called within callbacks:
"Unlike most other libcurl functions, curl_easy_pause can be used from within callbacks."
The thing is if you unpause a connection in a callback then couldn't it call the write callback and flip the in-callback bit to off?
For example:
Curl_set_in_callback(data, true);
then calls user's progress functionCurl_set_in_callback(data, true);
then calls user's write functionCurl_set_in_callback(data, false);
even though still in user's progress functionAre there other ways this could be an issue, like callback recursion if curl_easy_pause calls back into the user's progress function?
Beta Was this translation helpful? Give feedback.
All reactions