-
In my server process, I have some code that reads from a remoc channel. The while let Some(command) = rx.recv().await.unwrap() {
// ... do something with the command
} I did an end-to-end unit test, client to server—that worked. However, in my real program, I get an error: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
It means that the underlying connection has been disconnected or a protocol error occurred. Usually this happens when one endpoint closes the connection while there are still channels open. It may be safe to ignore on your server side, since it usually just means that the client has disconnected. |
Beta Was this translation helpful? Give feedback.
It means that the underlying connection has been disconnected or a protocol error occurred. Usually this happens when one endpoint closes the connection while there are still channels open. It may be safe to ignore on your server side, since it usually just means that the client has disconnected.