Django

Code

Changeset 3954

Show
Ignore:
Timestamp:
10/31/06 06:27:55 (2 years ago)
Author:
russellm
Message:

Fixes #2969 -- Added maxRequests option for FCGI servers. Thanks, Michael Radziej.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/core/servers/fastcgi.py

    r3777 r3954  
    3232  socket=FILE          UNIX socket to listen on. 
    3333  method=IMPL          prefork or threaded (default prefork) 
     34  maxrequests=NUMBER   number of requests a child handles before it is  
     35                       killed and a new child is forked (0 = no limit). 
    3436  maxspare=NUMBER      max number of spare processes to keep running. 
    3537  minspare=NUMBER      min number of spare processes to prefork. 
     
    6769    'minspare': 2, 
    6870    'maxchildren': 50, 
     71    'maxrequests': 0, 
    6972} 
    7073 
     
    104107            'minSpare': int(options["minspare"]), 
    105108            'maxChildren': int(options["maxchildren"]), 
     109            'maxRequests': int(options["maxrequests"]),  
    106110        } 
    107111    elif options['method'] in ('thread', 'threaded'):