[OE-core] [PATCH] oeqa/utils/httpserver.py: HTTPServer enable thread connection handling
Aníbal Limón
anibal.limon at linux.intel.com
Fri Aug 5 21:15:36 UTC 2016
HTTPServer now supports multiple connections using Python threads.
Signed-off-by: Aníbal Limón <anibal.limon at linux.intel.com>
---
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 bd76f36..7d12331 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.1.4
More information about the Openembedded-core
mailing list