Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mail.openembedded.org (Postfix) with ESMTP id E53DA7713D for ; Fri, 5 Aug 2016 21:15:39 +0000 (UTC) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP; 05 Aug 2016 14:15:40 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.28,474,1464678000"; d="scan'208";a="1030583260" Received: from pgronows-mobl.amr.corp.intel.com (HELO alimonb-mobl1.zpn.intel.com) ([10.254.134.94]) by orsmga002.jf.intel.com with ESMTP; 05 Aug 2016 14:15:38 -0700 From: =?UTF-8?q?An=C3=ADbal=20Lim=C3=B3n?= To: openembedded-core@lists.openembedded.org Date: Fri, 5 Aug 2016 16:15:36 -0500 Message-Id: <1470431736-12317-1-git-send-email-anibal.limon@linux.intel.com> X-Mailer: git-send-email 2.1.4 MIME-Version: 1.0 Cc: paul.eggleton@linux.intel.com Subject: [PATCH] oeqa/utils/httpserver.py: HTTPServer enable thread connection handling X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Aug 2016 21:15:40 -0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit HTTPServer now supports multiple connections using Python threads. Signed-off-by: Aníbal Limón --- 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 -- 2.1.4