-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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/http: wasi deadlock #65928
Comments
Did you run this example in the expected environment: |
And it reproduces constantly? |
Exactly the same problem in Windows. |
Kindly cc-ing @neelance |
I believe the wasip1 port does not support creating sockets, so you can't really have http servers with it. An excerpt from the WASI blog post:
|
In particular, the |
Go's Windows networking stack is pretty much completely separate from the fake |
WASIp1 doesn't support socket, but WASIp2 does. This issue is potentially fixable by #65333 See https://github.com/WebAssembly/WASI/tree/main/preview2#wasi-preview-2-contents And specifically Note that WASIp2 has consideration and drawbacks (from @sylvain101010) |
Yes, i compiled It with this |
Closing this as sockets aren't supported for wasi |
Not yet at least, indeed; |
Go version
go version go1.21.7 linux/amd64
Output of
go env
in your module/workspace:What did you do?
I compiled simple web servers using
GOOS=wasip1 GOARCH=wasm
and try to run it.What did you see happen?
The program crash because it detects a deadclock
What did you expect to see?
To run correctly
The text was updated successfully, but these errors were encountered: