Skip to content

Commit

Permalink
Merge pull request ppy#246 from bdach/timeouts
Browse files Browse the repository at this point in the history
Explicitly set S3 timeouts & retry counts
  • Loading branch information
peppy authored Oct 11, 2024
2 parents bd5b861 + 337fea1 commit 60418b4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion osu.Server.Spectator/S3.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. 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;
Expand All @@ -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),
});
}

Expand Down

0 comments on commit 60418b4

Please sign in to comment.