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
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,