From: Marcin Krol Date: Tue, 2 Apr 2024 16:37:08 +0000 (+0200) Subject: - use ThreadingHTTPServer X-Git-Url: https://git.tld-linux.org/?a=commitdiff_plain;h=2848e25627893eca88ca620056216632c9c05f2a;p=tld-builder.git - use ThreadingHTTPServer --- diff --git a/TLD_Builder/request_handler_server.py b/TLD_Builder/request_handler_server.py index 255572f..c2703f2 100644 --- a/TLD_Builder/request_handler_server.py +++ b/TLD_Builder/request_handler_server.py @@ -11,7 +11,7 @@ import traceback import os from config import config, init_conf -from http.server import BaseHTTPRequestHandler, HTTPServer +from http.server import BaseHTTPRequestHandler, ThreadingHTTPServer import request_handler import path @@ -93,7 +93,7 @@ def main(srv_ssl=False): port = config.request_handler_server_ssl_port try: - server = HTTPServer((host, port), MyHandler) + server = ThreadingHTTPServer((host, port), MyHandler) if srv_ssl: server.socket = ssl.wrap_socket (server.socket, keyfile = path.conf_dir + "/" + config.request_handler_server_ssl_key,