rustwindows-10rust-cargo

Cargo fails with "spurious network error: The operation timed out" on Windows 10 when using a local user


I'm trying to setup a Rust programming environment for a local user on a Windows 10 laptop that is usually connected to my company domain. Installing the stable version of Rust with rustup via rustup-init.exe completed without problems, but every time I try to use cargo to install tools or libraries I get an error message like the following:

warning: spurious network error (5 tries remaining): [2/-1] failed to send request: The operation timed out

This happens both from my company network and from my home one. I managed to setup Rust for my domain account without problems.

I suppose this is network related or it might involve the Sophos software my company uses as firewall/anti-virus; what is puzzling me is the fact that just about every other network related utility I tried works without problems, from git to curl.

I'd like to use this additional user because there are utilities my company blocks for domain users but not for local ones, such as Dropbox.


Solution

  • I don't have a definite explanation, but cargo works correctly when the VPN towards my office is active. I guess it really is something to do with security software.