donj91711
Hello,
Sometimes I try to download a large file and it times out. Here is a section of the log:
[20101220 19:11:17] 257 "/ResultDocs" is your current location
[20101220 19:12:20] SIZE 2010-11-30.zip
[20101220 19:12:20] 213 900186896
[20101220 19:12:31] PASV
[20101220 19:12:31] 227 Entering Passive Mode (63,232,53,150,39,85)
[20101220 19:12:31] Opening data connection to 63.232.53.150 Port: 10069
[20101220 19:12:31] RETR 2010-11-30.zip
[20101220 19:12:31] 150-Accepted data connection
[20101220 19:12:31] 150 879088.8 kbytes to download
[20101220 21:37:45] Transfer Timeout (30s). Closing data connection.
[20101220 21:37:45] 888966400 bytes transferred. (99.6 KB/s) (02:25:13)
[20101220 21:38:15] Timeout (30s).
[20101220 21:38:15] 3
[20101220 21:38:15] Client closed the connection.
[20101220 22:42:59] SmartFTP FTP Library 2.0.86.0
My line of code that runs the download is:
ret = objFTP.DownloadFile(FileName, ResultDocPath & FileName, nRestartLo, nRestartHi)
The return value is 3
My question is, how do I try again/resume without restarting from the begining? I know it has something to do with the values nRestartLo and nRestartHi, but I can't find a peice of sample code on your web site that shows that. I'm sure this is a simple procedure. Can you please point me to a sample of this?
Thanks
Sometimes I try to download a large file and it times out. Here is a section of the log:
[20101220 19:11:17] 257 "/ResultDocs" is your current location
[20101220 19:12:20] SIZE 2010-11-30.zip
[20101220 19:12:20] 213 900186896
[20101220 19:12:31] PASV
[20101220 19:12:31] 227 Entering Passive Mode (63,232,53,150,39,85)
[20101220 19:12:31] Opening data connection to 63.232.53.150 Port: 10069
[20101220 19:12:31] RETR 2010-11-30.zip
[20101220 19:12:31] 150-Accepted data connection
[20101220 19:12:31] 150 879088.8 kbytes to download
[20101220 21:37:45] Transfer Timeout (30s). Closing data connection.
[20101220 21:37:45] 888966400 bytes transferred. (99.6 KB/s) (02:25:13)
[20101220 21:38:15] Timeout (30s).
[20101220 21:38:15] 3
[20101220 21:38:15] Client closed the connection.
[20101220 22:42:59] SmartFTP FTP Library 2.0.86.0
My line of code that runs the download is:
ret = objFTP.DownloadFile(FileName, ResultDocPath & FileName, nRestartLo, nRestartHi)
The return value is 3
My question is, how do I try again/resume without restarting from the begining? I know it has something to do with the values nRestartLo and nRestartHi, but I can't find a peice of sample code on your web site that shows that. I'm sure this is a simple procedure. Can you please point me to a sample of this?
Thanks