Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

michael023

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.
martin

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.
michael023

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