1 write to BytesPerSecond
Microsoft.AspNetCore.Server.Kestrel.Core (1)
MinDataRate.cs (1)
31BytesPerSecond = bytesPerSecond;
11 references to BytesPerSecond
Microsoft.AspNetCore.Server.Kestrel.Core (7)
Internal\Http\Http1Connection.cs (1)
163Log.RequestBodyMinimumDataRateNotSatisfied(ConnectionId, TraceIdentifier, MinRequestBodyDataRate.BytesPerSecond);
Internal\Http2\Http2Connection.cs (1)
271Log.RequestBodyMinimumDataRateNotSatisfied(ConnectionId, null, Limits.MinRequestBodyDataRate.BytesPerSecond);
Internal\Http3\Http3Connection.cs (1)
904Log.RequestBodyMinimumDataRateNotSatisfied(ConnectionId, null, Limits.MinRequestBodyDataRate.BytesPerSecond);
Internal\Infrastructure\TimeoutControl.cs (3)
118if (_minReadRate.BytesPerSecond > 0 && _readTimingElapsedTicks > _minReadRateGracePeriodTicks) 123timeout = rate < _minReadRate.BytesPerSecond && !Debugger.IsAttached; 290var ticksToCompleteWriteAtMinRate = TimeSpan.FromSeconds(count / minRate.BytesPerSecond).ToTicks(_timeProvider);
MinDataRate.cs (1)
49return $"Bytes per second: {BytesPerSecond}, Grace Period: {GracePeriod}";
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (4)
KestrelServerLimitsTests.cs (2)
298Assert.Equal(240, new KestrelServerLimits().MinRequestBodyDataRate.BytesPerSecond); 306Assert.Equal(240, new KestrelServerLimits().MinResponseDataRate.BytesPerSecond);
MinDataRateTests.cs (1)
17Assert.Equal(value, new MinDataRate(bytesPerSecond: value, gracePeriod: TimeSpan.MaxValue).BytesPerSecond);
TimeoutControlTests.cs (1)
465AdvanceClock(Heartbeat.Interval + minRate.GracePeriod + TimeSpan.FromSeconds((numWrites - 1) * writeSize / minRate.BytesPerSecond));