changed SSL version to use from SSLv23 to TLSv1. closes #194 but needs more testing against counter-effects

This commit is contained in:
Pablo Hoffman 2012-11-15 16:28:39 -02:00
parent cba3967667
commit 5ebaa40ed2
1 changed files with 5 additions and 0 deletions

View File

@ -151,6 +151,11 @@ class ScrapyClientContextFactory(ClientContextFactory):
# see https://github.com/scrapy/scrapy/issues/82
# and https://github.com/scrapy/scrapy/issues/26
def __init__(self):
# see this issue on why we use TLSv1_METHOD by default
# https://github.com/scrapy/scrapy/issues/194
self.method = SSL.TLSv1_METHOD
def getContext(self):
ctx = ClientContextFactory.getContext(self)
# Enable all workarounds to SSL bugs as documented by