enable persistent connections

This commit is contained in:
Daniel Graña 2012-05-15 08:36:32 -03:00
parent e4fe7c63b0
commit ab3407289c
1 changed files with 1 additions and 1 deletions

View File

@ -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):