curl-library
Re: ftp persistant connection
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 30 Oct 2006 08:16:35 +0100 (CET)
Date: Mon, 30 Oct 2006 08:16:35 +0100 (CET)
On Mon, 30 Oct 2006, zhouhao_at_ifis.com.sg wrote:
> I wrote a ftp client application which send NLST to server every 1s. Here is
> ftp server log:
...
> It seems that the PASV command is also sent and connection is re-established
> every time. What's wrong with it?
Nothing's wrong, that's just the nature of FTP. The control connection is kept
alive between the transfers, but the data connection is established and
disconnected for each transfer. There's nothing libcurl can do to avoid that.
It's simply how FTP is designed to work.
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2006-10-30