Skip to content

Commit 366eb9c

Browse files
authored
Merge pull request #52361 from nextcloud/fix/51833/add-retries-to-s3-client
fix(objectstorage): add retry attempts to S3 connection
2 parents 271df14 + 49baa91 commit 366eb9c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

lib/private/Files/ObjectStore/S3ConnectionTrait.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,10 @@ public function getConnection() {
106106
'connect_timeout' => 5
107107
],
108108
'use_aws_shared_config_files' => false,
109+
'retries' => [
110+
'mode' => 'standard',
111+
'max_attempts' => 5,
112+
],
109113
];
110114

111115
if ($this->params['s3-accelerate']) {

0 commit comments

Comments
 (0)