From 2848e25627893eca88ca620056216632c9c05f2a Mon Sep 17 00:00:00 2001 From: Marcin Krol Date: Tue, 2 Apr 2024 18:37:08 +0200 Subject: [PATCH] - use ThreadingHTTPServer --- TLD_Builder/request_handler_server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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, -- 2.46.0