[OE-core] [PATCH] oeqa/utils/httpserver.py: HTTPServer enable thread connection handling
Paul Eggleton
paul.eggleton at linux.intel.com
Fri Aug 5 20:48:01 UTC 2016
On Fri, 05 Aug 2016 15:30:30 Aníbal Limón wrote:
> 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
This looks like a neat solution to the sstate serving issue Francisco has been
dealing with - thanks!
Cheers,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
More information about the Openembedded-core
mailing list