From a22cf3d825c574bdbb7980b784a21528b639d30b Mon Sep 17 00:00:00 2001 From: John Donaldson Date: Wed, 30 Oct 2019 15:19:15 +0000 Subject: [PATCH 1/2] Reverting to a forking HTTP server instead of a threading one --- devel/devel-server.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/devel/devel-server.py b/devel/devel-server.py index acde401..438c0e8 100755 --- a/devel/devel-server.py +++ b/devel/devel-server.py @@ -14,6 +14,7 @@ import os import pathlib import random import shutil +import socketserver import sys import traceback import mothballer @@ -25,14 +26,8 @@ from http import HTTPStatus sys.dont_write_bytecode = True # Don't write .pyc files -try: - ThreadingHTTPServer = http.server.ThreadingHTTPServer -except AttributeError: - import socketserver - class ThreadingHTTPServer(socketserver.ThreadingMixIn, http.server.HTTPServer): - daemon_threads = True -class MothServer(ThreadingHTTPServer): +class MothServer(socketserver.ForkingMixIn, http.server.HTTPServer): def __init__(self, server_address, RequestHandlerClass): super().__init__(server_address, RequestHandlerClass) self.args = {} From d1bffeace1df7e5f27351a46f129cd80f2611faa Mon Sep 17 00:00:00 2001 From: John Donaldson Date: Wed, 30 Oct 2019 15:30:23 +0000 Subject: [PATCH 2/2] Revving version number --- VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VERSION b/VERSION index eb39e53..bea438e 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.3 +3.3.1