1 write to GracePeriod
Microsoft.AspNetCore.Server.Kestrel.Core (1)
MinDataRate.cs (1)
32GracePeriod = gracePeriod;
9 references to GracePeriod
Microsoft.AspNetCore.Server.Kestrel.Core (4)
Internal\Infrastructure\TimeoutControl.cs (3)
208_minReadRateGracePeriodTicks = minRate.GracePeriod.ToTicks(_timeProvider); 296minRate.GracePeriod.ToTicks(_timeProvider), 339var gracePeriod = timestamp + minRate.GracePeriod.ToTicks(_timeProvider);
MinDataRate.cs (1)
49return $"Bytes per second: {BytesPerSecond}, Grace Period: {GracePeriod}";
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (5)
KestrelServerLimitsTests.cs (2)
299Assert.Equal(TimeSpan.FromSeconds(5), new KestrelServerLimits().MinRequestBodyDataRate.GracePeriod); 307Assert.Equal(TimeSpan.FromSeconds(5), new KestrelServerLimits().MinResponseDataRate.GracePeriod);
MinDataRateTests.cs (1)
36Assert.Equal(value, new MinDataRate(bytesPerSecond: 1, gracePeriod: value).GracePeriod);
TimeoutControlTests.cs (2)
407AdvanceClock(minRate.GracePeriod - TimeSpan.FromSeconds(1)); 465AdvanceClock(Heartbeat.Interval + minRate.GracePeriod + TimeSpan.FromSeconds((numWrites - 1) * writeSize / minRate.BytesPerSecond));