Guidance on how to run tonic over UnixStream::pair() or stdin/stdout
#2503
Unanswered
RaitoBezarius
asked this question in
Q&A
Replies: 0 comments
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.
Uh oh!
There was an error while loading. Please reload this page.
-
I have been trying for a while to run tonic over
UnixStream::pair()or stdin/stdout and failed hard, I'm not sure if there are expectations/ramifications I am not fulfilling.The model where we have to provide multiple connections have obviously a strong impedence mismatch with a pair of file descriptors which we are running the wires over.
Here's a MWE that I cannot make to work, the thing stops because the server ends after the first yield of the Unix stream because of — I assume — EOF on the child_socket.
I know that Golang has gRPC over stdout/stdin for Terraform things, I wonder how we could achieve something similar in Rust.
I am well aware of #184 but the examples unfortunately does not help me there.
Beta Was this translation helpful? Give feedback.
All reactions