second-state / wasmedge_wasi_socket

A Rust lib for socket on WasmEdge.
https://second-state.github.io/wasmedge_wasi_socket/
Apache License 2.0
70 stars 29 forks source link

READ and WRITE subscriptions on the same fd #50

Closed MediosZ closed 2 years ago

MediosZ commented 2 years ago

In mio, we can do this:

poll.registry().register(
    &mut connection,
    token,
    Interest::READABLE.add(Interest::WRITABLE),
)?;

It creates READ and WRITE subscriptions on the same fd. And this does't work in wasmedge_wasi_socket.

MediosZ commented 2 years ago

I find it's a problem with WASI, so I am closing this.