Skip to content

Commit 42c8cbe

Browse files
committed
Add extra params against conn timeout in boto3's config object
1 parent 9513b19 commit 42c8cbe

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

mds/core/s3_singleton.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,9 @@ def __init__(self, s3_endpoint=S3_ENDPOINT):
7171
endpoint_url=s3_endpoint,
7272
config=Config(
7373
signature_version=UNSIGNED,
74-
retries={"max_attempts": 10, "mode": "adaptive"},
74+
retries={"total_max_attempts": 10, "mode": "adaptive", "tcp_keepalive": True},
75+
connect_timeout=300,
76+
read_timeout=300,
7577
),
7678
)
7779
self.__paginator = self.__s3.get_paginator("list_objects_v2")

0 commit comments

Comments
 (0)