Compare commits
No commits in common. "3be12f7807218ecb322bea5cb0c7cea789d87ba3" and "ad9c445fe54b80941e562e935b5ab6d1434a3950" have entirely different histories.
3be12f7807
...
ad9c445fe5
@ -93,10 +93,7 @@ impl NodeServer {
|
||||
|
||||
let conn = if let Err(e) = conn {
|
||||
println!("Error accepting TLS connection: {e}");
|
||||
let attack_error_messages = ["handshake", "certificate", "quote"];
|
||||
|
||||
let err_str = e.to_string().to_lowercase();
|
||||
if attack_error_messages.iter().any(|att_er_str| err_str.contains(att_er_str)) {
|
||||
if e.to_string().contains("HandshakeFailure") {
|
||||
state.increase_net_attacks().await;
|
||||
}
|
||||
return;
|
||||
@ -200,7 +197,6 @@ impl Update for NodeServer {
|
||||
yield Ok(update.update);
|
||||
}
|
||||
// TODO: check if disconnect client if too many connections are active
|
||||
// Its tested and working
|
||||
if tx.receiver_count() > 9 {
|
||||
error_status = Status::internal("Already have too many clients. Connect to another server.");
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user