During higher loads, retrying the connection attempt is often required for the CIS api. (#972)

This commit is contained in:
kevgliss 2017-10-12 10:37:58 -07:00 committed by GitHub
parent 0152985e64
commit 14f5340802
1 changed files with 3 additions and 0 deletions

View File

@ -372,6 +372,9 @@ class DigiCertCISSourcePlugin(SourcePlugin):
self.session.hooks = dict(response=log_status_code)
a = requests.adapters.HTTPAdapter(max_retries=3)
self.session.mount('https://', a)
super(DigiCertCISSourcePlugin, self).__init__(*args, **kwargs)
def get_certificates(self, options, **kwargs):