On Fri, Mar 19, 2010 at 2:36 PM, Sébastien Roy <s...@okiok.com> wrote:
> I'm taking good notes of what you are proposing. I don't have control on the 
> FTP client side so it's hard for me to ask the client to rename the file 
> after a successful upload. I also already verify the REPLY code and it does 
> not seem to be different when the client close the connection or abort the 
> transfer from what it is when the connection close normally (I will re-test 
> that more today).

There are many ways (due to how TCP/IP works) in which the data
connection might be broken, but the server would just think the client
closed it normally.

> Regarding that, I'm a bit confuse about how the FTP protocol works. Should 
> the client send the ABOR command to terminate an upload? From what I've seen, 
> some client do that, but most don't.

ABOR will not work with FtpServer since we do handle the control and
dataconnections on the same thread (we block the thread to do the data
transfer). Most clients I'm familiar with just kill the socket, which
will leave a partially transferred file. Therefore the need to move as
David described.

/niklas

Reply via email to