improve socket channel close handling, and test the node banning (roughly)

This commit is contained in:
James Wilson
2021-07-30 18:58:10 +01:00
parent 3f523178be
commit a5b04cb4f0
7 changed files with 110 additions and 32 deletions
@@ -40,7 +40,7 @@ impl Default for ShardOpts {
Self {
max_nodes_per_connection: None,
max_node_data_per_second: None,
node_block_seconds: None
node_block_seconds: None,
}
}
}
@@ -125,9 +125,7 @@ pub async fn start_server(
// Append additional opts to the core command
if let Some(val) = core_opts.feed_timeout {
core_command = core_command
.arg("--feed-timeout")
.arg(val.to_string());
core_command = core_command.arg("--feed-timeout").arg(val.to_string());
}
// Star the server