-
-
Notifications
You must be signed in to change notification settings - Fork 32.7k
Closed as not planned
Labels
Description
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.