[oe-commits] [openembedded-core] 24/51: oeqa/utils/httpserver.py: HTTPServer enable thread connection handling

git at git.openembedded.org git at git.openembedded.org
Wed Aug 10 09:47:49 UTC 2016


rpurdie pushed a commit to branch master
in repository openembedded-core.

commit 1d45b7bd611b900bc00530144ec0634307b1314f
Author: Aníbal Limón <anibal.limon at linux.intel.com>
AuthorDate: Fri Aug 5 15:30:30 2016 -0500

    oeqa/utils/httpserver.py: HTTPServer enable thread connection handling
    
    HTTPServer now supports multiple connections using Python threads.
    
    Signed-off-by: Aníbal Limón <anibal.limon at linux.intel.com>
    Signed-off-by: Ross Burton <ross.burton at 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

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list