mirror of
https://github.com/Kozea/Radicale.git
synced 2025-08-01 18:18:31 +00:00
Limit number of parallel connections
This commit is contained in:
parent
e438d9fd4b
commit
83ea9da2b4
4 changed files with 22 additions and 2 deletions
|
@ -171,6 +171,8 @@ def run():
|
|||
else:
|
||||
server_class = ThreadedHTTPServer
|
||||
server_class.client_timeout = configuration.getint("server", "timeout")
|
||||
server_class.max_connections = configuration.getint("server",
|
||||
"max_connections")
|
||||
|
||||
if not configuration.getboolean("server", "dns_lookup"):
|
||||
RequestHandler.address_string = lambda self: self.client_address[0]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue