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

martin

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

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