summaryrefslogtreecommitdiff
path: root/flup/server/scgi.py
diff options
context:
space:
mode:
authorAllan Saddi <allan@saddi.com>2005-05-18 19:59:02 +0000
committerAllan Saddi <allan@saddi.com>2005-05-18 19:59:02 +0000
commit8f4e536580563b7aadbe71e722c475e81c679b4e (patch)
tree4993cdccaa2caeb10be5cd5d058a925a69b682e9 /flup/server/scgi.py
parenta8a85bf72115f6b84a655ed08872bf74410815a5 (diff)
downloadflup-8f4e536580563b7aadbe71e722c475e81c679b4e.tar.gz
Change threaded servers so wsgi.multiprocess is False by default.
Allow it to be changed by keyword argument.
Diffstat (limited to 'flup/server/scgi.py')
-rw-r--r--flup/server/scgi.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/flup/server/scgi.py b/flup/server/scgi.py
index 86e287d..5dbf377 100644
--- a/flup/server/scgi.py
+++ b/flup/server/scgi.py
@@ -88,7 +88,7 @@ class WSGIServer(BaseSCGIServer, ThreadedServer):
mind running in multiple processes, go use SWAP. ;)
"""
def __init__(self, application, scriptName='', environ=None,
- multithreaded=True,
+ multithreaded=True, multiprocess=False,
bindAddress=('localhost', 4000), allowedServers=None,
loggingLevel=logging.INFO, **kw):
"""
@@ -115,6 +115,7 @@ class WSGIServer(BaseSCGIServer, ThreadedServer):
scriptName=scriptName,
environ=environ,
multithreaded=multithreaded,
+ multiprocess=multiprocess,
bindAddress=bindAddress,
allowedServers=allowedServers,
loggingLevel=loggingLevel)