Closed stnbu closed 2 years ago
That's expected from the code, see https://github.com/sdroege/async-tungstenite/blob/f5025ed696569cd5e00dfb47ce9a7ff84a296e33/examples/echo-server.rs#L50-L53
If you want to handle the error gracefully then replace the expect()
with actual error handling. This would happen for example when the other side simply closes the connection.
Per the comments I run
And I made two connection's using the "websocat" utility crate.
Everything works as expected, I can send/receive from both clients, but at some point I see a panic in the server output.
This is at f5025ed696569cd5e00dfb47ce9a7ff84a296e33 / "0.17.2"
Here is my
rustup show
outputHere is the ugly panic output on the terminal.