From 1d45b7bd611b900bc00530144ec0634307b1314f Mon Sep 17 00:00:00 2001 From: =?utf8?q?An=C3=ADbal=20Lim=C3=B3n?= Date: Fri, 5 Aug 2016 15:30:30 -0500 Subject: [PATCH] oeqa/utils/httpserver.py: HTTPServer enable thread connection handling MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit HTTPServer now supports multiple connections using Python threads. Signed-off-by: Aníbal Limón Signed-off-by: Ross Burton --- meta/lib/oeqa/utils/httpserver.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meta/lib/oeqa/utils/httpserver.py b/meta/lib/oeqa/utils/httpserver.py index bd76f364683..7d12331453a 100644 --- a/meta/lib/oeqa/utils/httpserver.py +++ b/meta/lib/oeqa/utils/httpserver.py @@ -1,8 +1,9 @@ import http.server import multiprocessing import os +from socketserver import ThreadingMixIn -class HTTPServer(http.server.HTTPServer): +class HTTPServer(ThreadingMixIn, http.server.HTTPServer): def server_start(self, root_dir): import signal -- 2.47.2