cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: FTP: abort a transfer (using the ABOR FTP command)

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 17 Feb 2006 23:29:50 +0100 (CET)

On Fri, 17 Feb 2006, Olivier ROBIN wrote:

> I use libcurl for FTP, and I would like to have the possibility to interrupt
> a FTP transfer (STOR or RETR).
>
> I think I have to create two threads, one for the transfer operation, and
> the other to send the FTP command ABOR, but it looks like that we cannot
> shared a CURL* handle between multiple threads
> (http://curl.haxx.se/libcurl/features.html#thread).
>
> So, how can I send ABOR during a transfer without threads ?

You can't. You can abort the transfer, but it won't send any ABOR. It sounds
like a good thing to add...

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2006-02-17