From 046d626712723a275bf9c33220c20be2b231be73 Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Mon, 22 Sep 2008 22:49:10 +0200 Subject: improve comments --- wsgitools/scgi/forkpool.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'wsgitools/scgi/forkpool.py') 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(), [], []) -- cgit v1.2.3