Topic "session.reconnecttimeout not working"

Author Message
stlouisa

Guest


I am having problem with the session.reconnectTimeout.

I am using Powershell and WinSCP to upload file to a server. If I kill the VPN while WinSCP is uploading file. The thread hang. I have to kill powershell.

Looking more closely using wireshark, I can see WinSCP trying to reconnect.

I am trying to modify the behavior using the Session.reconnectTimeout. I set the value to 5. Expecting that after 5 seconds it will get out of the reconnecting loop and give back the control to the main thread.

Any suggestion
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24994
Location: Prague, Czechia
stlouisa wrote:
I am trying to modify the behavior using the Session.reconnectTimeout. I set the value to 5. Expecting that after 5 seconds it will get out of the reconnecting loop and give back the control to the main thread.

That's correct. Except that it always finishes the outstanding reconnect attempt. It breaks only after that fails. If WinSCP does not behave like that, please attach a complete session log file (Session.SessionLogPath).
_________________
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