Skip to content

Commit

Permalink
Merge pull request #30 from Atralupus/fix/adjust-min-request-rate
Browse files Browse the repository at this point in the history
Adjust MinRequestBodyDataRate gracePeriod
  • Loading branch information
Atralupus authored Dec 19, 2024
2 parents 940ab5c + a146b19 commit 9c21db3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ArenaService/ArenaService/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using GraphQL.Server.Ui.Playground;
using GraphQL.Types;
using Libplanet.Crypto;
using Microsoft.AspNetCore.Server.Kestrel.Core;
using StackExchange.Redis;
using AddressType = ArenaService.AddressType;

Expand Down Expand Up @@ -51,6 +52,11 @@
healthChecksBuilder.AddCheck<RpcNodeHealthCheck>(nameof(RpcNodeHealthCheck));
}

builder.WebHost.ConfigureKestrel(options =>
{
options.Limits.MinRequestBodyDataRate = new MinDataRate(240, TimeSpan.FromMinutes(1));
});


var app = builder.Build();
app
Expand Down

0 comments on commit 9c21db3

Please sign in to comment.