Skip to content

Commit

Permalink
allowing a bit more of a grace period on slow requests
Browse files Browse the repository at this point in the history
  • Loading branch information
scbedd committed Sep 7, 2023
1 parent b246d62 commit 2fcfa2f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/test-proxy/Azure.Sdk.Tools.TestProxy/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,8 @@ private static void StartServer(StartOptions startOptions)
.ConfigureKestrel(kestrelServerOptions =>
{
kestrelServerOptions.ConfigureEndpointDefaults(lo => lo.Protocols = HttpProtocols.Http1);
// default minimum rate is 240 bytes per second with 5 second grace period. Bumping to 50bps with a graceperiod of 20 seconds.
kestrelServerOptions.Limits.MinRequestBodyDataRate = new MinDataRate(bytesPerSecond: 50, gracePeriod: TimeSpan.FromSeconds(20));
})
);

Expand Down

0 comments on commit 2fcfa2f

Please sign in to comment.