about summary refs log tree commit diff
path: root/src/config.py
blob: e72477e2f61eead242ddefe8f2001dece0f4ac6e (plain)
1
2
3
4
5
6
7
8
9
# generic
BUFFER_LENGTH = 65536           # 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

# API
API_FILE_RANDOM_MIN_SIZE_LIMIT = 1              # 1 byte
API_FILE_RANDOM_MAX_SIZE_LIMIT = 2**30 * 5      # 5 GiB