Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
2.9k views
in .NET FTP by (180 points)
Not sure if this is an issue with EnterpriseDT, or with my servers. I'm using edtFTPnetPRO.dll version 4.1.2.0.

I'm able to recreate my problem as follows:
Using a normal FTP client program (FileZilla), I transfer a large file onto a standard FTP server. I then use the EDT code to download from the FTP server while the file is still being uploaded. The EDT code waits until the file is completely done uploading before it even begins to start downloading, as if it was waiting for the lock.

I do the same thing with SFTP (using SecureFTPConnection instead of ExFTPConnection). This begins to download immediately, and if the download is faster than the upload, it will think it's complete, but only have a partial file.

Do you know of anything with EDT that might cause this? Or does this sound more like a problem with the server configuration? If you'd like, I can post the code that handles the file retrieval, but my guess is that it's more of a simple answer.

Thanks for the help.

Joe

1 Answer

0 votes
by (162k points)
This sounds like the servers - the FTP server locks the file while it is being written, and doesn't permit downloads until it is complete, while the SFTP server (usually a different product altogether) does not.

In these situations it is generally best to upload to a temporary filename, rename when it is completed uploading, and then download.

Categories

...