mirror of https://github.com/scrapy/scrapy.git
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:
parent
c27f7eb7e9
commit
e6d7afa13b
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue