-
Notifications
You must be signed in to change notification settings - Fork 29
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
python: wasmedge docker image hangs when importing the socket package #96
Comments
You are right! The documentation is misleading in this case. I will correct it shortly. The reason we have a separate build is purely for the sake of the |
Thanks a lot for pointing this out! @achille-roussel , on a side note - is socket support in Python something for which you have some immediate business need , or are you just experimenting? Asking to help us prioritize. Thanks! |
I'm exploring what currently exists in the industry for networking with WASI. The use case is implementing it in Go, and I would like to stay as close to something that already exists for interoperability between languages and runtimes. Based on this comment it appears that wasmedge corrected their implementation of // To make the socket API compatible with the old one,
// we will duplicate all the API to V1 and V2.
// The V1 presents the original behavior before 0.12 release.
// On the other hand, the V2 presents the new behavior including
// the sock_accept is following the WASI spec, some of the API
// use a larger size for handling complex address type, e.g.
// AF_UNIX.
// By default, we will register V1 first, if the signatures are
// not the same as the wasm application imported, then V2 will
// replace instead. |
Describe the bug
When importing the
socket
package, the program hangs and may only be interrupted by termination via a signal.Reproduction steps
Expected behavior
The documentation appears to say that networking with Python is possible when using the build leveraging the WasmEdge socket API extensions. I expected to be able to import the
socket
package and either create a TCP client or server.Additional context
No response
The text was updated successfully, but these errors were encountered: