1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-08-01 18:18:31 +00:00

Add timeout to integrated sever

This commit is contained in:
Unrud 2016-06-10 14:33:25 +02:00
parent 54b47c4a3e
commit b55d2181ed
4 changed files with 21 additions and 2 deletions

View file

@ -170,6 +170,7 @@ def run():
name, filename, exception))
else:
server_class = ThreadedHTTPServer
server_class.client_timeout = configuration.getint("server", "timeout")
if not configuration.getboolean("server", "dns_lookup"):
RequestHandler.address_string = lambda self: self.client_address[0]