You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
No, this crate isn't intended to work with async IO. You could probably make it work on Unix by calling libc::fcntl with O_NONBLOCK after creating the pipe, but I haven't tried it. (And if you're going to get that low-level/platform-specific, then this crate isn't really doing much for you, and it might make more sense to call libc::pipe2 yourself instead.) There's a comment in the Rust standard library that discusses why these pipes cannot work with async IO on Windows ("IOCP").
we often meet io::copy hang if fd is closed on write side.
The text was updated successfully, but these errors were encountered: