Reputation: 11
I want to abort it immediately, for some reason. However, i couldn't find a good way to realize it yet. Can it be that: threadA abort a network request that was created in threadB?
Upvotes: 1
Views: 131
Reputation: 21513
options include, but are not limited to, returning non-zero from CURLOPT_XFERINFOFUNCTION or the CURLOPT_PROGRESSFUNCTION, which results in CURLE_ABORTED_BY_CALLBACK - or returning bogus data from CURLOPT_WRITEFUNCTION which results in CURLE_WRITE_ERROR , all of which aborts curl_easy_perform()
Upvotes: 0
Reputation: 6667
There is no way to do it with easy interface. Use multi interface instead. It allows you to know when interface is ready to perform IO operations without blocking.
Upvotes: 1