I connected to a VPN through Cisco AnyConnect Secure Mobility Client.
Then accessing files in shared network becomes very slow, took 30 seconds to open a text file in vim.
Any suggestions help, thank you!
I connected to a VPN through Cisco AnyConnect Secure Mobility Client.
Then accessing files in shared network becomes very slow, took 30 seconds to open a text file in vim.
Any suggestions help, thank you!
I reckon David Anderson had the answer, but nothing has improved in 10 years as far as I can see:
David's answer (with a small edit):
… I use Process Monitor from SysInternals.com and it revealed bad behavior when attempting to open "\server\TestTool\foo\ReadMe.TXT"It first attempts a CreateFile (aka, Directory open) on "\serve\". Notice the last character is missing. This will cause 4 seconds to time out with "OBJECT PATH INVALID".
Then it tries CreateFile on "\server\TestToo\". Server name is correct
bybut the last letter of "TestTool" is clipped. Again, a 3 second time out with "BAD NETWORK NAME".Finally it gets it right and calls CreateFile on "\server\TestTool\" which works right away. Then CreateFile on "\server\TestTool\foo" which works right away. Then CreateFile on "\server\TestTool\foo\ReadMe.TXT" which works right away.
I downloaded the source code and found the problem. They are using FindFirstFile() which is not supposed to be used on root directories or network shares. Bug in vim.