AsyncInputStream: if input-stream.read returns empty, try again.#60
AsyncInputStream: if input-stream.read returns empty, try again.#60sunfishcode merged 1 commit intomainfrom
Conversation
|
Another option, instead of looping, would be to return |
|
That would be the correct behavior for synchronous code. However, in this async context, the |
sunfishcode
left a comment
There was a problem hiding this comment.
Investigating more, I found that it's common for async Read traits to retry on ErrorKind::Interrupted, such as futures_io::AsyncRead does. So that sounds like the thing to do here too.
For details: bytecodealliance/wasmtime#9667 (comment)
We can release this as 0.5.1.