about summary refs log tree commit diff
diff options
context:
space:
mode:
authorUltraQbik <no1skill@yandex.ru>2024-08-29 06:58:35 +0300
committerUltraQbik <no1skill@yandex.ru>2024-08-29 06:58:35 +0300
commit7b6c4ec6f1255f56a4798e3607f721b625ced2b7 (patch)
tree3df403fcb0536f172f0cc20d246b2751040306c2
parent76f3f84974e08c35a7ad2ea8a5553bb2b66c196c (diff)
downloadhttpy-7b6c4ec6f1255f56a4798e3607f721b625ced2b7.tar.gz
httpy-7b6c4ec6f1255f56a4798e3607f721b625ced2b7.zip
Allow more connections
Allow 32768 total connections (although, more could be allowed)
Allow 64 connections at once
-rw-r--r--src/config.py6
1 files 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