-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support fifo pipes on unix #5318
Comments
I would like to work on this. |
I'd be quite interested in this as well. @satakuma if you don't have the time for this LMK so I can jump in and help out. |
I investigated this subject a bit and here are my thoughts. Proposed solutionExpose a new module These types will be created using either a
Motivation
Non-blocking openThe On Linux, there is a workaround which opens the writing end with access to both read and write, but in general behavior of such operation is not defined. I guess the Please let me know what you think @Darksonn and whether I should open a PR. |
That sounds like a similar issue as the We should simply provide the various methods that are possible, and then the user will just have to deal with the fact that Linux doesn't provide a good way to do this. It might be worth to include a method based on The rest of your proposal sounds good. |
Support for FIFO pipes was added in #5351, closing. |
Currently, we provide the
UnixStream
type for reading from a unix domain socket on Linux, but Linux also provides pipes. Domain sockets and pipes are not the same (see here). Furthermore, opening a named pipe withUnixStream::connect
will fail with an error. Currently the only way to asynchronously read from a pipe is to useAsyncFd
.I would like to see a type in
tokio::net
for use with fifo pipes.The text was updated successfully, but these errors were encountered: