Fix autothrottle in order to modify also inactive downloader slots, so cases fixed by inactive slots patch will work ok also when using autothrottle

This commit is contained in:
olveyra 2012-04-03 23:14:00 +00:00
parent c27f7eb7e9
commit e6d7afa13b
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