You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To close an easy handle that has been used with the multi interface, make sure to first call curl_multi_remove_handle to remove it from the multi handle before it is closed.
However the code for curl_easy_cleanup automatically calls curl_multi_remove_handle, so this is normally not strictly required...
Except that curl_multi_remove_handle is called after Curl_detach_connection(data); which could leave the connection in a very bad state, leading to future operations on that connection receiving the data for the operation that was just cleaned up.
I believe this could be improved by moving the Curl_detach_connection(data); down below curl_multi_remove_handle . That note from the documentation could also be removed if this change is made.