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