Skip to content

Commit 906ab16

Browse files
sfc-gh-mmishchenkosfc-gh-pczajka
authored andcommitted
NO-SNOW acquiring a lock on local OCSP cache will use a timeout (#2280)
1 parent 7caec44 commit 906ab16

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/snowflake/connector/ocsp_snowflake.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ def _deserialize(cls, opened_fd) -> _OCSPResponseValidationResultCache:
231231
OCSPResponseValidationResult,
232232
] = _OCSPResponseValidationResultCache(
233233
entry_lifetime=constants.DAY_IN_SECONDS,
234+
file_timeout=60.0,
234235
file_path={
235236
"linux": os.path.join(
236237
"~", ".cache", "snowflake", "ocsp_response_validation_cache.json"

0 commit comments

Comments
 (0)