summaryrefslogtreecommitdiffstats
path: root/module/web/ServerThread.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-06-12 22:40:48 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-06-12 22:40:48 +0200
commit87521d7141c73c9b262c963a5b03c4994482240a (patch)
tree5a9ba061539b322744536dcf0c431bd74fe72567 /module/web/ServerThread.py
parentRelinkUs, ShareLinksBiz, BitshareCom little improvements (diff)
downloadpyload-87521d7141c73c9b262c963a5b03c4994482240a.tar.xz
fixes for windows
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":