summaryrefslogtreecommitdiffstats
path: root/module/web/ServerThread.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/web/ServerThread.py')
-rw-r--r--module/web/ServerThread.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/module/web/ServerThread.py b/module/web/ServerThread.py
index d4992572d..98a018844 100644
--- a/module/web/ServerThread.py
+++ b/module/web/ServerThread.py
@@ -1,6 +1,8 @@
#!/usr/bin/env python
from __future__ import with_statement
from os.path import exists
+
+import os
import threading
import logging
@@ -55,9 +57,14 @@ class WebServer(threading.Thread):
log.warning(_("You need to download and compile bjoern, https://github.com/jonashaag/bjoern"))
log.warning(_("Copy the boern.so to module/lib folder or use setup.py install"))
log.warning(_("Of course you need to be familiar with linux and know how to compile software"))
- log.warning(_("in order to do this, but its worth the effort."))
self.server = "builtin"
+ if os.name == "nt":
+ self.core.log.info(_("Server set to threaded, due to known performance problems on windows."))
+ self.core.config.set['webinterface']['server'] = "threaded"
+ self.server = "threaded"
+
+
if self.server == "fastcgi":
self.start_fcgi()
elif self.server == "threaded":