curl / Mailing Lists / curl-library / Single Mail


break out of the curl_easy_perform loop

From: Deven via curl-library <>
Date: Sat, 11 Aug 2018 16:09:28 +0530


I am using curl to send email. I am using the curl easy interface which
blocks until the operation is complete.

res = curl_easy_perform( curl ) ;

Some operations would takes on tens of seconds to complete (at least in
case of errors).

Now, I would like to cleanly close the application which uses the curl
easy interface. The curl operation happens in a separate thread. Is
there a way to cancel the curl operation, break out of the blocking curl
easy perform function?



Received on 2018-08-11