-
Notifications
You must be signed in to change notification settings - Fork 822
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
connect to Windows port with no listener returns ETIMEDOUT instead of ECONNREFUSED when Windows firewall is enabled #5791
Comments
If you do " |
Hmm, I tried updating the nameserver as you described, but that file is automatically overwritten so it had no effect. And my attempts to edit |
Update the |
My bad, I misunderstood. I ran |
Hmm, must be something with the configuration of my local machine then. I'll keep digging. |
I was running into the same issue with pip hanging forever with Windows defender enabled. Adding It looks like having the |
Good catch, thanks a bunch! I did indeed have |
I don't really think this should be closed, this is some pretty odd behavior. |
Oh sorry, this is my first time opening an issue on GitHub. Should it be merged with #4805? |
It's linux behavior. Yes same #4805, thanks @davidbruce. |
Bouncing this back open, because while WSL2 (ie Linux) is behaving as intended, Windows Defender Firewall does behave in a non-obvious way, and that much probably deserves a landing zone. A repro would be, from elevated Powershell:
And from WSL2, Ubuntu 20.04, build 20201:
Assuming nothing is listening on 3000, the If Windows Firewall is disabled entirely, you get the expected I can't personally tell ya how to coerce Windows Firewall into allowing the expected |
I also got this issue since I set a |
@UncleCJ Install and run https://sourceforge.net/projects/vcxsrv/ then the I noticed this issue with freezing |
This issue has been automatically closed since it has not had any activity for the past year. If you're still experiencing this issue please re-file this as a new issue or feature request. Thank you! |
Environment
Steps to reproduce
sudo apt install python3 python3-pip
pip3 install --verbose autopep8
(Attempted for several different packages)WSL logs:
Expected behavior
With Windows Defender Firewall turned off, pip3 installs happen in seconds.
Actual behavior
With Windows Defender Firewall turned on, pip3 hangs for several minutes doing nothing. Even with
--verbose
on, nothing is printed to the console while it hangs. Then it begins the install normally.Additional notes
This behavior is unique to pip - nvm does not hang before doing an installation.
The text was updated successfully, but these errors were encountered: