diff options
author | Helmut Grohne <helmut@subdivi.de> | 2008-09-22 22:49:10 +0200 |
---|---|---|
committer | Helmut Grohne <helmut@subdivi.de> | 2008-09-22 22:49:10 +0200 |
commit | 046d626712723a275bf9c33220c20be2b231be73 (patch) | |
tree | 5940f495e1c918228620e178ddb133ca91cd03ae /wsgitools/scgi | |
parent | 592eaf98f851b9fd03206a4cd12ecaad462efa2c (diff) | |
download | wsgitools-046d626712723a275bf9c33220c20be2b231be73.tar.gz |
improve comments
Diffstat (limited to 'wsgitools/scgi')
-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(), [], []) |