View Single Post
Old 05-21-2002, 04:03 PM  
bigstar
FlashFXP Developer
 
bigstar's Avatar
 
Join Date: Oct 2001
Posts: 8,012
Default Re: suggestions

Quote:
Originally posted by space_ace
since we are able to see the end of transfer from the log, flashfxp must be able to do it as well. (parse the log?)


226 Transfer complete.
226 [other server messages]

(it's here where normally flashfxp issues its "transfer complete" message into the log, but as you can see here, we get nothing until...)

421 No Transfer Timeout (90 seconds): closing control connection.


the server is glftpd 1.26_Linux but i suppose other servers have similar if the same messages?
When downloading the "transfer complete" message is sent when the FTP server has completed sending all of the data, that does not mean the FTP client has reiceved all of the data.

If you're on a very slow dialup connection it may take more than 90 seconds for all of the remaining data to be recieved.

The transfer is not considered complete by the FTP client until the amount of data read equals the expected size of the file, in some cases the file may be larger than expected, in which case we keep reading until the connection is closed.

I've seen alot of ftp clients that keep you in the dark about the "226 transfer complete" message recieved from the ftp server, they don't show the user until the transfer has actually completed. FlashFXP on the other hand immediately shows you even if the transfer hasn't actually completed.
bigstar is offline