cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: keeping connection on multi_remove_handle for FTP

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 4 Dec 2006 15:09:06 +0100 (CET)

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.

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