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:44:02 +0100

>> 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.
finally, it sounded but it was not, ftp->state is FTP_STOP and ctl_valid is
true in my case.
I have to find something else...

Armel
Received on 2006-12-04