Decrease number of retries when disconnected
Hi,
I am using a script on a poor MIFI connection, when I have connection for me it works great, but when I have no mobile connection the script tries to reconnect for 20 times / 2 minutes.
for my situation 3 retries would be enough.
I am using a script on a poor MIFI connection, when I have connection for me it works great, but when I have no mobile connection the script tries to reconnect for 20 times / 2 minutes.
for my situation 3 retries would be enough.
script is something like:Connection failed.
(A)bort, (R)econnect (0 s): Reconnect
Connecting to <IP> ...
Connection failed.
A socket operation was attempted to an unreachable host.
"C:\Program Files (x86)\WinSCP\winscp.com" /command "open ftp://username:pass@IP" "synchronize remote C:\path /" exit