]> code.ossystems Code Review - openembedded-core.git/commitdiff
oeqa/utils/httpserver.py: HTTPServer enable thread connection handling
authorAníbal Limón <anibal.limon@linux.intel.com>
Fri, 5 Aug 2016 20:30:30 +0000 (15:30 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 10 Aug 2016 09:45:31 +0000 (10:45 +0100)
HTTPServer now supports multiple connections using Python threads.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/lib/oeqa/utils/httpserver.py

index bd76f364683cdd677e084428083613af42143639..7d12331453a6684b893b82eaab2af8f87530b54b 100644 (file)
@@ -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