session.reconnecttimeout not working

Advertisement

stlouisa
Guest

session.reconnecttimeout not working

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

Reply with quote

Advertisement

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

Re: session.reconnecttimeout not working

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

Reply with quote

Advertisement

You can post new topics in this forum