From 1d45b7bd611b900bc00530144ec0634307b1314f Mon Sep 17 00:00:00 2001 From: Aníbal Limón Date: Fri, 5 Aug 2016 15:30:30 -0500 Subject: oeqa/utils/httpserver.py: HTTPServer enable thread connection handling MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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(-) (limited to 'meta') diff --git a/meta/lib/oeqa/utils/httpserver.py b/meta/lib/oeqa/utils/httpserver.py index bd76f36468..7d12331453 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 -- cgit 1.2.3-korg