WebAssembly / WebAssembly/WASI

wasip3: Unclear how to implement `poll` for UDP sockets

Open
#897 17 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

P-sockets
Dominant language
Rust
Stars
5.8k
Forks
333
Avg merge
2d 13h
Merged PRs (30d)
3

Description

For TCP/stdio/etc the expectation is that poll is routed to zero-length reads/writes on streams, but UDP doesn't have a stream and only has async functions for senc/recv. I don't believe that the same trick of zero-length reads/writes will work here, so currently I don't believe that UDP sockets can get hooked up to poll.

cc @badeend

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the WASI poll expectations for TCP and stdio, then compare them with the UDP socket async send/recv APIs named in the issue. Done means agreeing on a concrete way for UDP sockets to participate in poll and identifying the implementation path and tests needed.

Written by the indexing model from the issue text.

Assessment

Domain
networking
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.