Ticket #2969: fastcgi.diff
File fastcgi.diff, 1.2 KB (added by , 18 years ago) |
---|
-
django/core/servers/fastcgi.py
a b Optional Fcgi settings: (setting=value) 31 31 port=PORTNUM port to listen on. 32 32 socket=FILE UNIX socket to listen on. 33 33 method=IMPL prefork or threaded (default prefork) 34 maxrequests=NUMBER if positive: how many requests a child handles 35 before it is killed and a new child forked. 34 36 maxspare=NUMBER max number of spare processes to keep running. 35 37 minspare=NUMBER min number of spare processes to prefork. 36 38 maxchildren=NUMBER hard limit number of processes in prefork mode. … … FASTCGI_OPTIONS = { 66 68 'maxspare': 5, 67 69 'minspare': 2, 68 70 'maxchildren': 50, 71 'maxrequests': 0, 69 72 } 70 73 71 74 def fastcgi_help(message=None): … … def runfastcgi(argset=[], **kwargs): 103 106 'maxSpare': int(options["maxspare"]), 104 107 'minSpare': int(options["minspare"]), 105 108 'maxChildren': int(options["maxchildren"]), 109 'maxRequests': int(options["maxrequests"]), 106 110 } 107 111 elif options['method'] in ('thread', 'threaded'): 108 112 from flup.server.fcgi import WSGIServer