Heap-Hop edited issue #9667:
Returning
0
forstd::io::ErrorKind::WouldBlock
causes downstream to interpret it as a closed stream, see:
https://github.com/yoshuawuyts/wstd/issues/25#issuecomment-2493294087.
https://github.com/yoshuawuyts/wstd/blob/5ce367add5e7bcb569b6487453cb9ba94468dc99/src/io/copy.rs#L12This is also found in:
https://github.com/bytecodealliance/wasmtime/blob/67674881db5fbdbba8594feb52655aaa351a5f77/crates/test-programs/src/bin/preview2_tcp_streams.rs#L17-L22
Given that thewit
files already include manywould-block
errors, would it make sense to extendstream-error
to include awould-block
?
Heap-Hop commented on issue #9667:
pchickey commented on issue #9667:
Thanks! Its a holiday weekend here so I’ll get to this next week.
Last updated: Dec 23 2024 at 12:05 UTC