Skip to content

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

SSL handshaking hangs when doing too many parallel connections to S3

Daniel Graña63d583d9be12
diff --git a/scrapy/contrib/pipeline/images.py b/scrapy/contrib/pipeline/images.py
index c7333a542..aa0a7b0b4 100644
--- a/scrapy/contrib/pipeline/images.py
+++ b/scrapy/contrib/pipeline/images.py
@@ -102,7 +102,7 @@ class S3ImagesStore(object):
def _get_boto_bucket(self):
from boto.s3.connection import S3Connection
- c = S3Connection(self.AWS_ACCESS_KEY_ID, self.AWS_SECRET_ACCESS_KEY)
+ c = S3Connection(self.AWS_ACCESS_KEY_ID, self.AWS_SECRET_ACCESS_KEY, is_secure=False)
return c.get_bucket(self.bucket, validate=False)
def _get_boto_key(self, key):