Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

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

martin

Re: Problem with changing timeout in batch-mode

First you should use -timeout switch of the open command in your script.txt instead of /timeout on command line.

But anyway, in 4.3.5 the /timeout (nor open -timeout) does not affect connection attempt timeout. This was added in 5.0.x beta only. The fix is also backpropagated to 4.3.6 which is due for release in few days.
pfeulner

Problem with changing timeout in batch-mode

Hello,

I want to change the timeout for a stored session, but it doesn't work.
I use the following command to start WINSCP in batch-mode:

WinSCP.exe /timeout=120/console /script=script.txt /log=winscp.log

The log-file says, that timeout is changed to 60 seconds, but after 20 seconds, a timeout occours.

Maybe someone could help me.

Thanks a lot.
Regards, Peter



Here ist the log-file:

. 2011-12-02 05:00:28.346 --------------------------------------------------------------------------
. 2011-12-02 05:00:28.346 WinSCP Version 4.3.5 (Build 1463) (OS 6.1.7601 Service Pack 1)
. 2011-12-02 05:00:28.346 Configuration: HKEY_CURRENT_USER\Software\Martin Prikryl\WinSCP 2\
. 2011-12-02 05:00:28.346 Local account: xxx\xxx
. 2011-12-02 05:00:28.346 Login time: Freitag, 2. Dezember 2011 05:00:28
. 2011-12-02 05:00:28.346 --------------------------------------------------------------------------
. 2011-12-02 05:00:28.346 Session name: xxx (Stored session)
. 2011-12-02 05:00:28.346 Host name: xxx.xxx.xxx.xxx (Port: 2121)
. 2011-12-02 05:00:28.346 User name: xxx (Password: Yes, Key file: No)
. 2011-12-02 05:00:28.346 Tunnel: No
. 2011-12-02 05:00:28.346 Transfer Protocol: FTP
. 2011-12-02 05:00:28.346 Ping type: C, Ping interval: 30 sec; Timeout: 60 sec
. 2011-12-02 05:00:28.346 Proxy: none
. 2011-12-02 05:00:28.346 FTP: FTPS: None; Passive: Yes [Force IP: No]
. 2011-12-02 05:00:28.346 Local directory: default, Remote directory: home, Update: No, Cache: Yes
. 2011-12-02 05:00:28.346 Cache directory changes: Yes, Permanent: Yes
. 2011-12-02 05:00:28.346 DST mode: 1
. 2011-12-02 05:00:28.346 --------------------------------------------------------------------------
. 2011-12-02 05:00:28.346 Verbinde mit xxx.xxx.xxx.xxx:2121 ...
. 2011-12-02 05:00:49.374 Ein Verbindungsversuch ist fehlgeschlagen, da die Gegenstelle nach einer bestimmten Zeitspanne nicht richtig reagiert hat, oder die hergestellte Verbindung war fehlerhaft, da der verbundene Host nicht reagiert hat.
. 2011-12-02 05:00:49.374 Verbindung fehlgeschlagen.