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
net: [WSL2] listen unix /tmp/echo.sock: bind: A socket operation encountered a dead network. #44797
Comments
Does /tmp/echo.sock exist before you ran the program? Maybe a previous version left it around? |
@davecheney Look like, it exists:
|
I don't think there is any thing left to do here, this doesn't look like a defect in Go. |
Seems it doesn't relevant to WSL-specific things. netcat works fine: listener:
client:
|
Can you strace the nc process, maybe it unlinks the socket before binding to it? |
@davecheney Yes, it unlinks.
|
Maybe you can change your code to unlink the socket before trying to open it. |
@davecheney Yes! I've understood what happened. tl;dr don't run the application from mounted Windows FS ( I've moved source code to WSL Thanks for help. Closed. |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Not sure.
What operating system and processor architecture are you using (
go env
)?WSL2, Windows 10 19042.804
go env
OutputWhat did you do?
I try to create an HTTP server over UNIX socket following the code below:
https://play.golang.org/p/y_9ERHHbBxI
What did you expect to see?
I want to see running server app.
What did you see instead?
The text was updated successfully, but these errors were encountered: