diff options
author | Martin Poirier <theeth@yahoo.com> | 2010-02-28 01:07:38 +0300 |
---|---|---|
committer | Martin Poirier <theeth@yahoo.com> | 2010-02-28 01:07:38 +0300 |
commit | 769eb45124596bff1c41e7e389b9110047b90d30 (patch) | |
tree | 1fd6b3e67dabd967e328f7da738ecad55833dc94 /release | |
parent | fa6beb43028b26424cf8aa0712f8f1a9ed8360a4 (diff) |
NetRender: Use threading mixin for master server. See if it solves latency issues that some people are having (always keep the stdout log from the master/client/slaves if you are reporting an issue).
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/io/netrender/master.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/release/scripts/io/netrender/master.py b/release/scripts/io/netrender/master.py index fed324e7258..019f33047d8 100644 --- a/release/scripts/io/netrender/master.py +++ b/release/scripts/io/netrender/master.py @@ -17,7 +17,7 @@ # ##### END GPL LICENSE BLOCK ##### import sys, os -import http, http.client, http.server, urllib, socket +import http, http.client, http.server, urllib, socket, socketserver, threading import subprocess, shutil, time, hashlib import select # for select.error @@ -860,7 +860,7 @@ class RenderHandler(http.server.BaseHTTPRequestHandler): else: # invalid url self.send_head(http.client.NO_CONTENT) -class RenderMasterServer(http.server.HTTPServer): +class RenderMasterServer(socketserver.ThreadingMixIn, http.server.HTTPServer): def __init__(self, address, handler_class, path): super().__init__(address, handler_class) self.jobs = [] |