Skip to content

How to implement non-blocking POSIX send in terms of stream.write? #441

Open
@badeend

Description

@badeend

Am I correct to say that: when stream.write returns BLOCKED, it continues to have access to the provided memory buffer until the write either finishes or is canceled?
If so, does this mean wasi-libc has to perform an intermediate copy into a private socket-level buffer first for every send/recv on non-blocking sockets? (in order to emulate the "readiness"-based POSIX async model)

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