From: Sven Velt Date: Sun, 20 Jun 2010 21:01:26 +0000 (+0200) Subject: Added fork()ing to HTTP daemons X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=cb56b0b6eaa8bb8997cdc5be45744cb73d73ea88;p=nagixsc.git Added fork()ing to HTTP daemons Signed-off-by: Sven Velt --- diff --git a/nagixsc/__init__.py b/nagixsc/__init__.py index 825d41d..321407b 100644 --- a/nagixsc/__init__.py +++ b/nagixsc/__init__.py @@ -475,7 +475,7 @@ def daemonize(pidfile=None, stdin='/dev/null', stdout='/dev/null', stderr='/dev/ ############################################################################## -class MyHTTPServer(BaseHTTPServer.HTTPServer): +class MyHTTPServer(SocketServer.ForkingMixIn, BaseHTTPServer.HTTPServer): def __init__(self, server_address, HandlerClass, ssl=False, sslpemfile=None): if ssl: # FIXME: SSL is in Py2.6