diff options
Diffstat (limited to 'wsgitools/scgi/forkpool.py')
-rw-r--r-- | wsgitools/scgi/forkpool.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/wsgitools/scgi/forkpool.py b/wsgitools/scgi/forkpool.py index 2d8428d..3058316 100644 --- a/wsgitools/scgi/forkpool.py +++ b/wsgitools/scgi/forkpool.py @@ -169,18 +169,18 @@ class SCGIServer: minworkers=2, maxworkers=32, maxrequests=1000): """ @param wsgiapp: is the WSGI application to be run. - @type port: number + @type port: int @param port: is the tcp port to listen on @type interface: str @param interface: is the interface to bind to (default: "localhost") @param error: is a filelike object beeing passed as wsgi.error in environ - @type minworkers: number + @type minworkers: int @param minworkers: is the number of worker processes to spawn - @type maxworkers: number + @type maxworkers: int @param maxworkers: is the maximum number of workers that can be spawned on demand - @type maxrequests: number + @type maxrequests: int @param maxrequests: is the number of requests a worker processes before dying """ @@ -207,7 +207,7 @@ class SCGIServer: while True: while (len(self.workers) < self.minworkers or # less than min (len(self.workers) < self.maxworkers and # less than max - not len([w for w in # no inctive + not len([w for w in # no inactive self.workers.values() if w.state == 0]))): self.spawnworker() rs, _, _ = select.select(self.workers.keys(), [], []) |