Skip to content

WASI socket support #96320

Description

@tiran

Feature or enhancement

WASI has limited support for BSD-like sockets in snapshot preview 1. tl;dr it is not possible to open new connections. The WASI runtime must pass a socket file descriptor into the process. Preview 1 supports both connected client-side socket and accept() on bound listening sockets. poll() is available as well, although limited to poll_oneoff. bind, connect, sendto / recvfrom, DNS lookup and NETDB (gethostbyname, getaddrinfo, getservbyname) etc are not available.

Let's document the missing functions and address the remaining issues to get socketserver and simple clients working.

Previous discussion

GH-95179 addressed several missing functions that prevented us to compile the socket module on WASI.

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions