Skip to content

Commit 707d630

Browse files
committed
Bring back code comments
1 parent fc51725 commit 707d630

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

storages/backends/s3.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,9 @@ def __init__(self, **settings):
331331
"AWS_S3_SECRET_ACCESS_KEY/secret_key"
332332
)
333333

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.
334337
self._connection_lock = threading.Lock()
335338
self._connection_expiry = None
336339
self._connection = None

0 commit comments

Comments
 (0)