Changeset 13:9614506c40a9

Show
Ignore:
Timestamp:
05/18/05 03:11:02 (3 years ago)
Author:
Allan Saddi <allan@saddi.com>
branch:
default
convert_revision:
svn:46762da8-4eb7-0310-94e9-d918b60927c8/flup/trunk@1785
Message:

Fix wsgi.multiprocess for scgi_fork. (Set to True.)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • ChangeLog

    r12 r13  
     12005-05-18  Allan Saddi  <asaddi@ganymede.saddi.net> 
     2 
     3        * Fix wsgi.multiprocess for scgi_fork. (Set to True.) 
     4 
    152005-05-15  Allan Saddi  <asaddi@ganymede.saddi.net> 
    26 
  • flup/server/scgi_base.py

    r8 r13  
    268268    requestClass = Request 
    269269 
     270    # AFAIK, the current mod_scgi does not do load-balancing/fail-over. 
     271    # So a single application deployment will only run in one process 
     272    # at a time, on this server (when using a threaded server, of course). 
     273    _multiprocess = False 
     274 
    270275    def __init__(self, application, scriptName='', environ=None, 
    271276                 multithreaded=True, 
     
    341346        environ['wsgi.errors'] = sys.stderr 
    342347        environ['wsgi.multithread'] = self.multithreaded 
    343         # AFAIK, the current mod_scgi does not do load-balancing/fail-over. 
    344         # So a single application deployment will only run in one process 
    345         # at a time, on this server. 
    346         environ['wsgi.multiprocess'] = False 
     348        environ['wsgi.multiprocess'] = self._multiprocess 
    347349        environ['wsgi.run_once'] = False 
    348350 
  • flup/server/scgi_fork.py

    r9 r13  
    7373 
    7474class WSGIServer(BaseSCGIServer, PreforkServer): 
     75    _multiprocess = True 
     76 
    7577    """ 
    7678    SCGI/WSGI server. For information about SCGI (Simple Common Gateway