]> TLD Linux GIT Repositories - tld-builder.git/commitdiff
- use ThreadingHTTPServer
authorMarcin Krol <hawk@tld-linux.org>
Tue, 2 Apr 2024 16:37:08 +0000 (18:37 +0200)
committerMarcin Krol <hawk@tld-linux.org>
Tue, 2 Apr 2024 16:37:08 +0000 (18:37 +0200)
TLD_Builder/request_handler_server.py

index 255572ffcb9d4f36169a34807e2756fc8b22c316..c2703f27f6b9a066a1e46af14e4a5b92786d843e 100644 (file)
@@ -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,