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