|
|
|
@ -432,6 +432,7 @@ class testHTTPServer_RequestHandler(BaseHTTPRequestHandler):
|
|
|
|
|
def do_GET(self):
|
|
|
|
|
try:
|
|
|
|
|
global gSettingsDict
|
|
|
|
|
self.timeout=gSettingsDict["ServerDict"]["RequestTimeoutSecFloat"]
|
|
|
|
|
self.settimeout(gSettingsDict["ServerDict"]["RequestTimeoutSecFloat"])
|
|
|
|
|
threading.current_thread().request = self
|
|
|
|
|
self.OpenRPA = {}
|
|
|
|
@ -522,7 +523,8 @@ class testHTTPServer_RequestHandler(BaseHTTPRequestHandler):
|
|
|
|
|
def do_POST(self):
|
|
|
|
|
try:
|
|
|
|
|
global gSettingsDict
|
|
|
|
|
self.settimeout(gSettingsDict["ServerDict"]["RequestTimeoutSecFloat"])
|
|
|
|
|
self.timeout=gSettingsDict["ServerDict"]["RequestTimeoutSecFloat"]
|
|
|
|
|
self.request.settimeout(gSettingsDict["ServerDict"]["RequestTimeoutSecFloat"])
|
|
|
|
|
threading.current_thread().request = self
|
|
|
|
|
lL = gSettingsDict["Logger"]
|
|
|
|
|
self.OpenRPA = {}
|
|
|
|
@ -637,6 +639,8 @@ class ThreadedHTTPServer(ThreadingMixIn, HTTPServer):
|
|
|
|
|
"""Handle requests in a separate thread."""
|
|
|
|
|
def finish_request(self, request, client_address):
|
|
|
|
|
try:
|
|
|
|
|
global gSettingsDict
|
|
|
|
|
request.settimeout(gSettingsDict["ServerDict"]["RequestTimeoutSecFloat"])
|
|
|
|
|
# "super" can not be used because BaseServer is not created from object
|
|
|
|
|
HTTPServer.finish_request(self, request, client_address)
|
|
|
|
|
except ConnectionResetError as e:
|
|
|
|
|