Replies: 1 comment 2 replies
-
The Note that your first clause in the match can be simplified to |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey, I'm using
UnixSteam
for communication among 2 processes, and one process acts as client and the other acts as server. The client sends messages to the server on the Unix Domain Docket and wait for server response on the same socket.I'm using the following snippet to read all data on the socket:
Something I noticed is that the code will block indefinitely rather than return when there is no more data from the server. Is my observation correct? Thanks a lot for any advices.
My tokio version is
0.2.24
.Beta Was this translation helpful? Give feedback.
All reactions