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