We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc51725 commit 707d630Copy full SHA for 707d630
storages/backends/s3.py
@@ -331,6 +331,9 @@ def __init__(self, **settings):
331
"AWS_S3_SECRET_ACCESS_KEY/secret_key"
332
)
333
334
+ # These variables are used for a boto3 client time-to-live caching mechanism.
335
+ # We want to avoid storing a resource for too long to avoid their memory leak
336
+ # ref https://github.com/boto/boto3/issues/1670.
337
self._connection_lock = threading.Lock()
338
self._connection_expiry = None
339
self._connection = None
0 commit comments