Zombie connections

This commit is contained in:
arkpar
2016-02-20 01:10:27 +01:00
parent 69df91de68
commit b1bfd00875
6 changed files with 120 additions and 61 deletions

View File

@@ -74,7 +74,7 @@ impl NetworkProtocolHandler<TestProtocolMessage> for TestProtocol {
}
fn connected(&self, io: &NetworkContext<TestProtocolMessage>, peer: &PeerId) {
assert!(io.peer_info(*peer).contains("parity"));
assert!(io.peer_info(*peer).contains("Parity"));
if self.drop_session {
io.disconnect_peer(*peer)
} else {