Added configs to max in connections per remote host. (#229)

This commit is contained in:
Ravin Perera
2021-01-29 13:05:39 +05:30
committed by GitHub
parent 70493d827d
commit 3d36912c25
7 changed files with 104 additions and 78 deletions

View File

@@ -79,7 +79,8 @@ namespace usr
*/
int start_listening()
{
ctx.server.emplace("User", conf::cfg.user.port, metric_thresholds, conf::cfg.user.max_bytes_per_msg);
ctx.server.emplace("User", conf::cfg.user.port, metric_thresholds, conf::cfg.user.max_bytes_per_msg,
conf::cfg.user.max_connections, conf::cfg.user.max_in_connections_per_host);
if (ctx.server->start() == -1)
return -1;