mirror of https://github.com/scrapy/scrapy.git
enable persistent connections
This commit is contained in:
parent
e4fe7c63b0
commit
ab3407289c
|
|
@ -27,7 +27,7 @@ ClientContextFactory = load_object(settings['DOWNLOADER_CLIENTCONTEXTFACTORY'])
|
|||
class Http11DownloadHandler(object):
|
||||
|
||||
def __init__(self):
|
||||
self._pool = HTTPConnectionPool(reactor, persistent=False)
|
||||
self._pool = HTTPConnectionPool(reactor, persistent=True)
|
||||
self._contextFactory = ClientContextFactory()
|
||||
|
||||
def download_request(self, request, spider):
|
||||
|
|
|
|||
Loading…
Reference in New Issue