Commit 0acb7577 authored by Shane Kerr's avatar Shane Kerr
Browse files

Convert from fork & exec server to a threaded server.

git-svn-id: svn:// e5f2f494-b856-4b98-b285-d166d9295462
parent 6d3e50f8
...@@ -28,6 +28,7 @@ resut to client. ...@@ -28,6 +28,7 @@ resut to client.
import sys; sys.path.append ('@@PYTHONPATH@@') import sys; sys.path.append ('@@PYTHONPATH@@')
import os import os
import socketserver
import http.server import http.server
import urllib.parse import urllib.parse
import json import json
...@@ -320,7 +321,7 @@ class CommandControl(): ...@@ -320,7 +321,7 @@ class CommandControl():
return 1, {'error': errstr} return 1, {'error': errstr}
class SecureHTTPServer(http.server.HTTPServer): class SecureHTTPServer(socketserver.ThreadingMixIn, http.server.HTTPServer):
'''Make the server address can be reused.''' '''Make the server address can be reused.'''
allow_reuse_address = True allow_reuse_address = True
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment