summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAníbal Limón <anibal.limon@linux.intel.com>2016-08-05 15:30:30 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-08-10 10:46:32 +0100
commitfeb125eb1726cad64e6ff973fdb814554ed13290 (patch)
treedb4d485c562a0ae7425feda4687de00b02ddf4e2
parent262c81e3ca2583be2d44b7195747f1a42a10a9f3 (diff)
downloadpoky-feb125eb1726cad64e6ff973fdb814554ed13290.tar.gz
oeqa/utils/httpserver.py: HTTPServer enable thread connection handling
HTTPServer now supports multiple connections using Python threads. (From OE-Core rev: 1d45b7bd611b900bc00530144ec0634307b1314f) Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/lib/oeqa/utils/httpserver.py3
1 files changed, 2 insertions, 1 deletions
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 @@
1import http.server 1import http.server
2import multiprocessing 2import multiprocessing
3import os 3import os
4from socketserver import ThreadingMixIn
4 5
5class HTTPServer(http.server.HTTPServer): 6class HTTPServer(ThreadingMixIn, http.server.HTTPServer):
6 7
7 def server_start(self, root_dir): 8 def server_start(self, root_dir):
8 import signal 9 import signal