From 14f5340802365860f3956011337244a0c35d225f Mon Sep 17 00:00:00 2001 From: kevgliss Date: Thu, 12 Oct 2017 10:37:58 -0700 Subject: [PATCH] During higher loads, retrying the connection attempt is often required for the CIS api. (#972) --- lemur/plugins/lemur_digicert/plugin.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lemur/plugins/lemur_digicert/plugin.py b/lemur/plugins/lemur_digicert/plugin.py index fe9f2198..c5bf1965 100644 --- a/lemur/plugins/lemur_digicert/plugin.py +++ b/lemur/plugins/lemur_digicert/plugin.py @@ -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):