reasonable total connections value

This commit is contained in:
griffi-gh 2023-05-20 14:59:48 +02:00
parent 14c66ee2eb
commit 4dde1651ab

View file

@ -29,7 +29,7 @@ pub fn bind_server(
let server = Server::bind( let server = Server::bind(
config.server.address, config.server.address,
ServerConfig { ServerConfig {
max_total_connections: config.server.max_clients, max_total_connections: config.server.max_clients * 2,
max_active_connections: config.server.max_clients, max_active_connections: config.server.max_clients,
enable_handshake_errors: true, enable_handshake_errors: true,
endpoint_config: EndpointConfig { endpoint_config: EndpointConfig {