Add some comments and references to github issues. closes #82

This commit is contained in:
Daniel Graña 2012-01-25 19:15:59 -02:00
parent 2840865746
commit eb8e98461d
1 changed files with 5 additions and 0 deletions

View File

@ -147,8 +147,13 @@ else:
class ScrapyClientContextFactory(ClientContextFactory):
"A SSL context factory which is more permissive against SSL bugs."
# see https://github.com/scrapy/scrapy/issues/82
# and https://github.com/scrapy/scrapy/issues/26
def getContext(self):
ctx = ClientContextFactory.getContext(self)
# Enable all workarounds to SSL bugs as documented by
# http://www.openssl.org/docs/ssl/SSL_CTX_set_options.html
ctx.set_options(SSL.OP_ALL)
return ctx