diff options
Diffstat (limited to 'module/web/webinterface.py')
-rw-r--r-- | module/web/webinterface.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/module/web/webinterface.py b/module/web/webinterface.py index 75907a0a8..ae97406c7 100644 --- a/module/web/webinterface.py +++ b/module/web/webinterface.py @@ -133,16 +133,17 @@ def run_lightweight(host="0.0.0.0", port="8000"): run(app=web, host=host, port=port, quiet=True, server="bjoern") -def run_threaded(host="0.0.0.0", port="8000", threads=3, cert="", key=""): +def run_threaded(host="0.0.0.0", port="8000", threads=6, cert="", key=""): from wsgiserver import CherryPyWSGIServer if cert and key: CherryPyWSGIServer.ssl_certificate = cert CherryPyWSGIServer.ssl_private_key = key - CherryPyWSGIServer.numthreads = threads + # todo: threads configurable from utils import CherryPyWSGI + CherryPyWSGI.numthreads = threads run(app=web, host=host, port=port, server=CherryPyWSGI, quiet=True) |