Skip to content

Commit

Permalink
Use ThreadingMixIn for the simple server
Browse files Browse the repository at this point in the history
ForkingMixIn isn't available on Windows. This is the simple server
without features, so use ThreadingMixIn to keep things consistent.
  • Loading branch information
CendioOssman authored and Giuseppe Corbelli committed Apr 15, 2019
1 parent fb6405b commit 05c4ac9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions websockify/websocketproxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@

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
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 05c4ac9

Please sign in to comment.