[patch][fastcgi] Add minspare / maxspare / maxchildren options to threaded implementation of runfcgi
|Reported by:||James Crasta <jcrasta@…>||Owned by:||adrian|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
When looking through flups's threaded server code recently, I noticed that flup (at least recent flup) uses a threadpool, and takes the same minSpare / maxSpare options as the prefork implementation, and even will take a similar maxThreads option. I've attached a patch which maps the relevant runfcgi options into flup. Unfortunately, there's no 'maxrequests' option as recently added to the prefork implementation #2969
Attached patch adds the WSGI option and changes the runfcgi help to reflect the changes. Code has been tested as working in a production environment.