Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
6.4k views
in .NET FTP by
I am downloading a large binary file (300mb). The download is fairly slow and takes about 3 hours. Sometimes in the middle of the download, the whole transfer just freezes. There is no exception and the program just keeps running but the download has stopped.

I am not sure what is happening but I assume it is some sort of issue where the connection gets lost or something and can't recover.

Is there anyway to catch such a problem so I can create a new connection and resume? Thanks.


ps. I noticed a post similar to this a couple of days ago, but I have the updated version (I just downloaded the control today).

2 Answers

0 votes
by
After soem more testing, I decided to set the timeout. When I added the timeout, at some point it seemed the timeout was reached and the whole program just aborted. I was in debug mode and the code never hit the next line, it just abruptly ended. Does the .NET vesrion throw a SocketException of some sort on the timeout?
0 votes
by (162k points)
.NET documentation is very unclear about what is thrown here. Try catching System.SystemException and printing the error message.

After soem more testing, I decided to set the timeout. When I added the timeout, at some point it seemed the timeout was reached and the whole program just aborted. I was in debug mode and the code never hit the next line, it just abruptly ended. Does the .NET vesrion throw a SocketException of some sort on the timeout?

Categories

...