Decrease number of retries when disconnected

Advertisement

michael023
Joined:
Posts:
2
Location:
Netherlands

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.
Connection failed.
(A)bort, (R)econnect (0 s): Reconnect
Connecting to <IP> ...
Connection failed.
A socket operation was attempted to an unreachable host.
script is something like:
"C:\Program Files (x86)\WinSCP\winscp.com" /command "open ftp://username:pass@IP" "synchronize remote C:\path /" exit

Reply with quote

Advertisement

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

Re: Decrease number of retries when disconnected

Please attach a full session log file showing the problem (using the latest version of WinSCP).

To generate the session log file, use /log=C:\path\to\winscp.log command-line argument. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.

Reply with quote

michael023
Joined:
Posts:
2
Location:
Netherlands

Re: Decrease number of retries when disconnected

Thanks,
Attached the logfile, to reproduce the problem now I have disabled WiFi from my laptop during the upload, but in reality I get the same retries when my MiFi router no longer has a 3G/4G connection.

Reply with quote

Advertisement

You can post new topics in this forum