FTP Connection Time Out Auto Retry?

Advertisement

siksol
Joined:
Posts:
2
Location:
Dallas

FTP Connection Time Out Auto Retry?

I am using Version 4.1.7 (Build 413). I have an automated script that puts a file on an FTP. Every now and then, I get a timeout detected. Is there something I can add to my script that will automatically retry? Here is a snippet of the log error:

. 2014-11-09 17:58:13.088 Timeout detected.
. 2014-11-09 17:58:13.088 Copying files to remote side failed.
. 2014-11-09 17:58:13.088 Connection was lost, asking what to do.
. 2014-11-09 17:58:13.088 Asking user:
. 2014-11-09 17:58:13.088 Lost connection. ("Timeout detected.","Copying files to remote side failed.","ASCII data connection for /bin/ls (154.4.6.95,53122) (0 bytes).")


Here is a sample of my script:
option batch on
option confirm off
open ftp
option transfer ascii
cd targetfolder
put *.txt
close
exit

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,518
Location:
Prague, Czechia

Re: FTP Connection Time Out Auto Retry?

WinSCP should automatically retry. Though I cannot tell if 4.1.7 (6 years old) supports that or not. Try the latest version.

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
41,518
Location:
Prague, Czechia

siksol wrote:

If I install version 5.5.3, will all my batch script commands work the same?
Yes, in 99% of the cases.

You can search version history for "Change:" to find all backward-incompatible changes.
https://winscp.net/eng/docs/history
https://winscp.net/eng/docs/history_old
Though the script shown about should not be affected. It uses some obsoleted syntax (like option transfer ascii), but all of it is still supported.

Reply with quote

Advertisement

You can post new topics in this forum