feo-cz / win-sshfs

Fork of http://code.google.com/p/win-sshfs/
BSD 3-Clause "New" or "Revised" License
1.28k stars 126 forks source link

connection failed to establish within 5000 milliseconds #164

Open AmosNS opened 6 years ago

AmosNS commented 6 years ago

WinSshFS

Dokan driver

Enviroment

Support


Got a message "connection failed to establish within 5000 milliseconds" when I ran "Mount", anyone know the reason?

skliarie commented 6 years ago

I have the same problem. The connection works properly when I am on a local network. When I am at home connecting to the office over VPN, the connection might take up to 8-15 seconds (putty/winscp). Thus it is clear that 5 seconds of win-sshfs is not enough. But I could not find option to change the timeout. Please tell me where I can change this or add the option if necessary.

mayou33 commented 6 years ago

I have the same problem.

bit2shift commented 5 years ago

The workaround is to manually add this XML element to the desired drive in the config file:

<timeoutInterval i:type="a:int" xmlns="" xmlns:a="http://www.w3.org/2001/XMLSchema">30</timeoutInterval>

It's an hidden setting that seemingly appeared in PR #141 and, despite appearing to be hard-coded in the current source code, it's used in version 1.6.1.13. Keep in mind that this setting will go away every time WinSshFS is closed.