Skip to content

Commit 9622ebc

Browse files
committed
SNOW-26990: add more retry on application errors for OCSP validation
1 parent 09abe8e commit 9622ebc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ocsp_pyopenssl.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ def execute_ocsp_request(ocsp_uri, cert_id, do_retry=True):
546546
session.mount('http://', HTTPAdapter(max_retries=5))
547547
session.mount('https://', HTTPAdapter(max_retries=5))
548548

549-
max_retry = 5 if do_retry else 1
549+
max_retry = 100 if do_retry else 1
550550
# NOTE: This retry is to retry getting HTTP 200.
551551
for attempt in range(max_retry):
552552
response = session.post(
@@ -1140,7 +1140,7 @@ def validate_by_direct_connection(
11401140
self._must_use_cache and cache_status, 'Test: Must use cache!'
11411141

11421142
err = None
1143-
max_retry = 5 if do_retry else 1
1143+
max_retry = 100 if do_retry else 1
11441144
# NOTE: this retry is connection error retry
11451145
for retry in range(max_retry):
11461146
# retry up to three times

0 commit comments

Comments
 (0)