From 7b6c4ec6f1255f56a4798e3607f721b625ced2b7 Mon Sep 17 00:00:00 2001 From: UltraQbik Date: Thu, 29 Aug 2024 06:58:35 +0300 Subject: Allow more connections Allow 32768 total connections (although, more could be allowed) Allow 64 connections at once --- src/config.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/config.py b/src/config.py index 29b18e3..077c9cc 100644 --- a/src/config.py +++ b/src/config.py @@ -1,9 +1,9 @@ # generic LOGGER_PATH = "logs" -BUFFER_LENGTH = 65536 # 64 KiB +BUFFER_LENGTH = 2**16 # 64 KiB BUFFER_MAX_SIZE = 2**30 * 0.5 # 512 MiB -CLIENT_MAX_AMOUNT = 512 # max requests at once, after which the connections are dropped -CLIENT_MAX_PROCESS = 32 # max processing threads at once +CLIENT_MAX_AMOUNT = 2**15 # max requests at once, after which the connections are dropped +CLIENT_MAX_PROCESS = 64 # max processing threads at once # API API_FILE_RANDOM_MIN_SIZE_LIMIT = 1 # 1 byte -- cgit 1.4.1