Skip to contentSkip to conversation

oeqa/utils/httpserver.py: HTTPServer enable thread connection handling

PATCH New Aníbal Limón 1 participant 1 message Aug 5, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 oeqa/utils/httpserver.py: HTTPServer enable thread connection handling

HTTPServer now supports multiple connections using Python threads.

---
 meta/lib/oeqa/utils/httpserver.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meta/lib/oeqa/utils/httpserver.py +2 -1
index bd76f36..7d12331 100644
@@ -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
Signature · 1 line
2.1.4