You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Select a free port (9000 in my case, nothing is listening to that port) and run:
curl -v localhost:9000
Expected Behavior
Connection is immediately refused
➜ ~ curl -v localhost:9000
* Trying 127.0.0.1:9000...
* connect to 127.0.0.1 port 9000 failed: Connection refused
* Trying ::1:9000...
* connect to ::1 port 9000 failed: Connection refused
* Failed to connect to localhost port 9000 after 0 ms: Connection refused
* Closing connection 0
curl: (7) Failed to connect to localhost port 9000 after 0 ms: Connection refused
Actual Behavior
It waits for 2 minutes and then times out
➜ ~ curl -v localhost:9000
* Trying 127.0.0.1:9000...
* Trying ::1:9000...
* connect to ::1 port 9000 failed: Connection refused
* connect to 127.0.0.1 port 9000 failed: Connection timed out
* Failed to connect to localhost port 9000 after 131210 ms: Connection timed out
* Closing connection 0
curl: (28) Failed to connect to localhost port 9000 after 131210 ms: Connection timed out
Diagnostic Logs
No response
The text was updated successfully, but these errors were encountered:
Windows Version
Microsoft Windows [Version 10.0.22631.2715]
WSL Version
2.0.9.0
Are you using WSL 1 or WSL 2?
Kernel Version
5.15.133.1-1
Distro Version
Ubuntu 22.04
Other Software
No response
Repro Steps
.wslconfig
toExpected Behavior
Connection is immediately refused
Actual Behavior
It waits for 2 minutes and then times out
Diagnostic Logs
No response
The text was updated successfully, but these errors were encountered: