veloren/network
Marcel Märtens 12b46250f5 protocols no longer send a Close Frame in case the read fails. They just fail, let participant handle this!
Participant will now handle a close in the `create_channel_mgr` rather then the `send` fn. Its the better place, which makes a HashMap better for delete lookup
Since tcp_read now broke but tcp_write didn't and the Participant wasnt updated till both were broke, we changed CHANNEL tcp_read and tcp_write in protocols to be a `select` rather than a `join`
However only do this in the CHANNEL, but in the HANDSHAKE. it fails if you try to. Also the handshake will take care of any failed read or write manually and will handle a clear teardown in this case.
2020-08-21 18:00:07 +02:00
..
examples make prometheus optional in network and fix a panic in the server 2020-07-15 16:45:49 +02:00
src protocols no longer send a Close Frame in case the read fails. They just fail, let participant handle this! 2020-08-21 18:00:07 +02:00
tests protocols no longer send a Close Frame in case the read fails. They just fail, let participant handle this! 2020-08-21 18:00:07 +02:00
Cargo.toml make prometheus optional in network and fix a panic in the server 2020-07-15 16:45:49 +02:00