curl-library
Re: pthread_cancel while in curl_easy_perform
Date: Tue, 29 Jan 2013 14:33:43 -0800
On Tue, Jan 29, 2013 at 2:18 PM, Daniel Stenberg <daniel_at_haxx.se> wrote:
> On Tue, 29 Jan 2013, Andrew Strohman wrote:
>
>> I would like to be able to cancel a thread that is in the middle of
>> curl_easy_perform without leaking memory or sockets. My first attempt was
>> to do this:
>
>
> All attempts to kill the thread are futile for reasons you've already
> figured out.
>
> This question is handled in the FAQ:
>
> http://curl.haxx.se/docs/faq.html#How_do_I_stop_an_ongoing_transfe
>
> --
>
> / daniel.haxx.se
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-library
> Etiquette: http://curl.haxx.se/mail/etiquette.html
Thanks for the reply. Does your statement also apply to the multi
interface? The way the faq is worded gives me hope that I can safely
do pthread_cancel if I'm using the multi interface. Is that right?
Thanks,
Andy
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-01-29