Skip to content

Commit 4733505

Browse files
committed
Adjust single user rate-limit, enforce a specific pin sync intervall
1 parent ba5c26c commit 4733505

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

Refresh.Core/RateLimits/Users/SingleUserEndpointLimits.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ namespace Refresh.Core.RateLimits.Users;
22

33
public static class SingleUserEndpointLimits
44
{
5-
public const int TimeoutDuration = 300;
6-
public const int ApiRequestAmount = 50;
7-
public const int GameRequestAmount = 90;
8-
public const int BlockDuration = 240;
5+
public const int TimeoutDuration = 180;
6+
public const int ApiRequestAmount = 30;
7+
public const int GameRequestAmount = 50;
8+
public const int BlockDuration = 120;
99
public const string ApiRequestBucket = "single-user-api";
1010
public const string GameRequestBucket = "single-user-game";
1111
}

Refresh.Interfaces.Game/Endpoints/Handshake/MetadataEndpoints.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ public string NetworkSettings(RequestContext context, GameServerConfig config)
8484
// OverheatingThreshholdDisallowMidgameJoin is set to >1.0 so that it never triggers
8585
// ShowLevelBoos, EnableCommunityDecorations, EnablePlayedFilter enable various game features
8686
// DisableDLCPublishCheck disables the game's DLC publish check.
87+
// SECONDS_BETWEEN_PINS_AWARDED_UPLOADS is forced to the value which both LBP2 and 3 default to (5 minutes) incase a beta build sets a different value.
8788
networkSettings ??= $"""
8889
AllowOnlineCreate true
8990
ShowErrorNumbers true
@@ -99,7 +100,7 @@ EnablePlayedFilter true
99100
EnableHackChecks false
100101
DisableDLCPublishCheck true
101102
AlexDB true
102-
103+
SECONDS_BETWEEN_PINS_AWARDED_UPLOADS 300.0
103104
""";
104105

105106
return networkSettings;

0 commit comments

Comments
 (0)