Merge pull request #108 from kalessin/throttleslot

Fix autothrottle in order to modify also inactive downloader slots, so c...
This commit is contained in:
Pablo Hoffman 2012-04-03 17:02:31 -07:00
commit ab4dd928ee
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ class AutoThrottle(object):
key = urlparse_cached(request).hostname or ''
if downloader.ip_concurrency:
key = dnscache.get(key, key)
return key, downloader.slots.get(key)
return key, downloader.slots.get(key) or downloader.inactive_slots.get(key)
def _check_concurrency(self, slot, latency):
latencies = self.last_latencies