Topic "Problem with changing timeout in batch-mode"

Author Message
pfeulner

Guest


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.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
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.
_________________
Martin Prikryl
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