cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: keeping connection on multi_remove_handle for FTP

From: Armel Asselin <asselin.armel_at_wanadoo.fr>
Date: Mon, 4 Dec 2006 18:30:34 +0100

> On Mon, 4 Dec 2006, Armel Asselin wrote:
>
>> as long as I can clearly establish from the FTP request the current state
>> and tell "am I at the end?" (if not, this is a cancellation, if yes, this
>> is a simple removal after operation). can I test conn.proto.ftp->state
>> for that (FTP_STOP)?
>
> Yes it sounds right, but you should probably also check
> conn->proto.ftpc.ctl_valid to be TRUE as otherwise you're adviced to not
> use the control connection at all since it may (no longer) be working
> nicely.
would it make sense to return CURLE_CANCELED from Curl_ftp_done in this
case?

Armel
Received on 2006-12-04