Limit incoming connections from the same IP

This commit is contained in:
Miguel Herranz
2017-01-14 13:21:20 +01:00
parent 2a2f02e375
commit 3f269e988c
2 changed files with 32 additions and 0 deletions
+2
View File
@@ -227,6 +227,8 @@ namespace nodetool
bool set_rate_down_limit(const boost::program_options::variables_map& vm, int64_t limit);
bool set_rate_limit(const boost::program_options::variables_map& vm, int64_t limit);
bool has_too_many_connections(const uint32_t ip);
void kill() { ///< will be called e.g. from deinit()
_info("Killing the net_node");
is_closing = true;