Code

Added fork()ing to HTTP daemons
authorSven Velt <sven@velt.de>
Sun, 20 Jun 2010 21:01:26 +0000 (23:01 +0200)
committerSven Velt <sven@velt.de>
Sun, 20 Jun 2010 21:01:26 +0000 (23:01 +0200)
Signed-off-by: Sven Velt <sven@velt.de>
nagixsc/__init__.py

index 825d41d25196eebff8ab1cb3240bda92f2a70526..321407bc3abf7a84659065410afd50b0600ff083 100644 (file)
@@ -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