-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #246 from bdach/timeouts
Explicitly set S3 timeouts & retry counts
- Loading branch information
Showing
1 changed file
with
5 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
// Copyright (c) ppy Pty Ltd <[email protected]>. Licensed under the MIT Licence. | ||
// See the LICENCE file in the repository root for full licence text. | ||
|
||
using System; | ||
using System.IO; | ||
using System.Threading.Tasks; | ||
using Amazon; | ||
|
@@ -20,7 +21,10 @@ private static AmazonS3Client getClient(RegionEndpoint? endpoint = null) | |
HttpClientCacheSize = 32, | ||
RegionEndpoint = endpoint ?? RegionEndpoint.USWest1, | ||
UseHttp = true, | ||
ForcePathStyle = true | ||
ForcePathStyle = true, | ||
RetryMode = RequestRetryMode.Legacy, | ||
MaxErrorRetry = 5, | ||
Timeout = TimeSpan.FromSeconds(10), | ||
}); | ||
} | ||
|
||
|