Use ThreadingMixIn for the simple server

ForkingMixIn isn't available on Windows. This is the simple server
without features, so use ThreadingMixIn to keep things consistent.
This commit is contained in:
Pierre Ossman 2019-04-02 17:03:08 +02:00
parent d751ec44a8
commit 85074b6eb5
1 changed files with 3 additions and 3 deletions

View File

@ -13,9 +13,9 @@ as taken from http://docs.python.org/dev/library/ssl.html#certificates
import signal, socket, optparse, time, os, sys, subprocess, logging, errno, ssl
try:
from socketserver import ForkingMixIn
from socketserver import ThreadingMixIn
except ImportError:
from SocketServer import ForkingMixIn
from SocketServer import ThreadingMixIn
try:
from http.server import HTTPServer
@ -726,7 +726,7 @@ def websockify_init():
server.start_server()
class LibProxyServer(ForkingMixIn, HTTPServer):
class LibProxyServer(ThreadingMixIn, HTTPServer):
"""
Just like WebSocketProxy, but uses standard Python SocketServer
framework.