Share via


KestrelServerLimits.MinResponseDataRate Property

Definition

Gets or sets the response minimum data rate in bytes/second. Setting this property to null indicates no minimum data rate should be enforced. This limit has no effect on upgraded connections which are always unlimited. This can be overridden per-request via IHttpMinResponseDataRateFeature.

Defaults to 240 bytes/second with a 5 second grace period.

public:
 property Microsoft::AspNetCore::Server::Kestrel::Core::MinDataRate ^ MinResponseDataRate { Microsoft::AspNetCore::Server::Kestrel::Core::MinDataRate ^ get(); void set(Microsoft::AspNetCore::Server::Kestrel::Core::MinDataRate ^ value); };
public Microsoft.AspNetCore.Server.Kestrel.Core.MinDataRate MinResponseDataRate { get; set; }
public Microsoft.AspNetCore.Server.Kestrel.Core.MinDataRate? MinResponseDataRate { get; set; }
member this.MinResponseDataRate : Microsoft.AspNetCore.Server.Kestrel.Core.MinDataRate with get, set
Public Property MinResponseDataRate As MinDataRate

Property Value

Remarks

Contrary to the request body minimum data rate, this rate applies to the response status line and headers as well.

This rate is enforced per write operation instead of being averaged over the life of the response. Whenever the server writes a chunk of data, a timer is set to the maximum of the grace period set in this property or the length of the write in bytes divided by the data rate (i.e. the maximum amount of time that write should take to complete with the specified data rate). The connection is aborted if the write has not completed by the time that timer expires.

Applies to