threefoldtech / rmb-rs

RMB implementation in rust
Apache License 2.0
3 stars 1 forks source link

Avoid cancelling a `read` call #144

Closed muhamadazmy closed 11 months ago

muhamadazmy commented 11 months ago

Stream read is not cancellation safe, it can then put the socket in a bad state and reads will get blocked. forever

Instead we run the read in own routine, and then pipe read messages to the connection loop. which is cancellation safe.

Fixes #143