Skip to content

Unable to run tcp socket in wasmtime #4978

Closed

Description

@expploitt

I would like to know the state of networking in wasmtime 1.0.0, because I can compile tcplistener with the target wasm32-wasi but then wasmtime throws error "funcionality not supported".

I would like to know if I have to preopend sockets or to use some specific crate in the case of having basic networking available.

Thanks!

Activity

  1. changed the title [-]Unable to run tcp socker in wasmtime[/-] [+]Unable to run tcp socket in wasmtime[/+] on Sep 29, 2022
  2. bjorn3 commented on Sep 29, 2022

    @bjorn3
    Contributor

    #3729 added the arguments of which you need to use one to open the socket and rust-lang/rust#93158 implemented rust support and provides a code snippet you can use.

  3. alexcrichton commented on Sep 30, 2022

    @alexcrichton
    Member

    Indeed I believe this is implemented to the extent that WASI supports sockets today, if you'd like more functionality I'd recommend opening an issue on the WASI proposal to extend the sockets proposal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions