~zoni/rocket/rocket

  • Committer: Nick Groenen
  • Date: 2013-01-01 16:47:49 UTC
  • Revision ID: zoni@zoni.nl-20130101164749-wq8d5zuvgh8q7gjv
Fix growing by negative amount when max_threads = 0

grow() checks if max_threads has been reached, in which case it refuses
to grow any further. It does this with:
        amount = min([amount, self.max_threads - len(self.threads)])

With max_threads = 0 (indicating grow indefinitely), the latter will
always be a negative number, causing grow() to grow by a negative amount. 

With this commit, this check against max_threads is skipped when
max_threads = 0, ensuring it will always keep growing in this case.
Filename Latest Rev Last Changed Committer Comment Size
..
doc 37 14 years ago Timothy Farrell Renamed CherryPy adapter to CherryPyWSGIServer. Re Diff
examples 77 14 years ago Timothy Farrell Added a simple file-server (method "fs"). Added an Diff
rocket 44 14 years ago Timothy Farrell Move from using setuptools to distribute in order Diff
tests 69 14 years ago Timothy Farrell Added some initial (incomplete and useless) unit t Diff
distribute_setup.py 106 13 years ago Timothy Farrell Bump distribute up. 15.3 KB Diff Download File
LICENSE.txt 193 13 years ago Timothy Farrell BUGFIX #744053: socket timeout problem fixed. Als 1 KB Diff Download File
monolithic.py 123 13 years ago Timothy Farrell This commit marks 1.2.0. Descriptive variable rena 2.3 KB Diff Download File
release.py 66 14 years ago Timothy Farrell Bumped the version to 0.2.1 to cover a bugfix and 3.1 KB Diff Download File
File setup.py 195 12 years ago Timothy Farrell This is 1.2.4 2.3 KB Diff Download File