Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

enable persistent connections

Daniel Grañaab3407289cd4
diff --git a/scrapy/core/downloader/handlers/http11.py b/scrapy/core/downloader/handlers/http11.py
index 3793663a1..dc7796093 100644
--- a/scrapy/core/downloader/handlers/http11.py
+++ b/scrapy/core/downloader/handlers/http11.py
@@ -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):