Topic "FTP Connection Time Out Auto Retry?"

Author Message
siksol
[View user's profile]

Joined: 2014-11-10
Posts: 2
Location: Dallas
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
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24995
Location: Prague, Czechia
WinSCP should automatically retry. Though I cannot tell if 4.1.7 (6 years old) supports that or not. Try the latest version.
_________________
Martin Prikryl
siksol
[View user's profile]

Joined: 2014-11-10
Posts: 2
Location: Dallas
If I install version 5.5.3, will all my batch script commands work the same?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24995
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.
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License