Scrapy, a fast high-level web crawling & scraping framework for Python.
core: prevent download timeout from been accidentally disabled
Daniel Granaab3fdbdb8e16
diff --git a/scrapy/trunk/scrapy/core/downloader/handlers.py b/scrapy/trunk/scrapy/core/downloader/handlers.pyindex 3a439e7da..16ec5aa35 100644--- a/scrapy/trunk/scrapy/core/downloader/handlers.py+++ b/scrapy/trunk/scrapy/core/downloader/handlers.py@@ -56,7 +56,7 @@ def create_factory(request, spider):headers=request.headers,agent=agent,cookies=request.cookies,- timeout=getattr(spider, "download_timeout", default_timeout),+ timeout=getattr(spider, "download_timeout", None) or default_timeout,followRedirect=False)def _create_response(body):