(try|async)_io with NamedPipes working example #6811
Replies: 2 comments
|
Ah, this may be because I'm creating a mio named pipe without an event loop associated with it |
0 replies
|
Ah, I missed that |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I'm trying to use named pipes with either try_io or async_io and can't seem to get very far. I've tried using mio and std::fs::File with the
raw_handleof a named pipe in order to perform efficient reads, but each time I run the code, the read returns aWouldBlockerror and the readiness flag never goes back to true. I'm attaching some code here to give folks an idea of what I'm talking about, but I'm hoping @amab8901 or someone more familiar with this workflow than I am can help me out and/or add an example to the docs.All reactions