File tree 2 files changed +5
-3
lines changed
src/Microsoft.AspNetCore.Server.Kestrel.Core
test/Microsoft.AspNetCore.Server.Kestrel.Core.Tests 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -258,8 +258,10 @@ public long? MaxConcurrentUpgradedConnections
258
258
/// This can be overridden per-request via <see cref="IHttpMinRequestBodyDataRateFeature"/>.
259
259
/// </summary>
260
260
/// <remarks>
261
- /// Defaults to 1 byte /second with a 5 second grace period.
261
+ /// Defaults to 240 bytes /second with a 5 second grace period.
262
262
/// </remarks>
263
- public MinDataRate MinRequestBodyDataRate { get ; set ; } = new MinDataRate ( bytesPerSecond : 1 , gracePeriod : TimeSpan . FromSeconds ( 5 ) ) ;
263
+ public MinDataRate MinRequestBodyDataRate { get ; set ; } =
264
+ // Matches the default IIS minBytesPerSecond
265
+ new MinDataRate ( bytesPerSecond : 240 , gracePeriod : TimeSpan . FromSeconds ( 5 ) ) ;
264
266
}
265
267
}
Original file line number Diff line number Diff line change @@ -296,7 +296,7 @@ public void MaxRequestBodySizeInvalid(long value)
296
296
public void MinRequestBodyDataRateDefault ( )
297
297
{
298
298
Assert . NotNull ( new KestrelServerLimits ( ) . MinRequestBodyDataRate ) ;
299
- Assert . Equal ( 1 , new KestrelServerLimits ( ) . MinRequestBodyDataRate . BytesPerSecond ) ;
299
+ Assert . Equal ( 240 , new KestrelServerLimits ( ) . MinRequestBodyDataRate . BytesPerSecond ) ;
300
300
Assert . Equal ( TimeSpan . FromSeconds ( 5 ) , new KestrelServerLimits ( ) . MinRequestBodyDataRate . GracePeriod ) ;
301
301
}
302
302
You can’t perform that action at this time.
0 commit comments