Skip to content

wasi: unnecessarily strong assumptions about fd 0-2 #4447

@yamt

Description

@yamt

because the plain wasip1 dosen't have connect/listen,
sometimes embedders play a trick to pass an already connected/listening socket.

eg. https://github.com/yamt/garbage/tree/master/wasm/httpd

unfortunately these tricks don't work well for the current wamr if the embedder uses fd 0-2 for it
(as the above example does by default)
because it has unnecessarily strong assumptions about how fd 0-2 are used.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions