sirpent-team / sirpent-rust

A multiplayer snake server to test the bounds of Rust Futures.
https://sirpent-team.github.io/sirpent-rust/
Apache License 2.0
7 stars 0 forks source link

Recover clients that timed out - or at least disconnect them. #36

Closed 46bit closed 7 years ago

46bit commented 7 years ago

In ClientsReceive we could rework things so that clients are not lost if they have no received message by the point ClientsReceive::entries is called. This would involve Sender::start_send and such, or could be done simpler by returning (channel_rx, oneshot_rx) after sending the oneshot_tx off.

46bit commented 7 years ago

Clients are being dropped if they don't send a Msg::Move in the available time. I'm happy keeping this as it is; might do something different as part of #38.