Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,9 @@ public interface IHttpMinResponseDataRateFeature
/// This feature is not available for HTTP/2 requests. Instead, use <see cref="KestrelServerLimits.MinResponseDataRate"/>
/// for server-wide configuration which applies to both HTTP/2 and HTTP/1.x.
/// </summary>
/// <remarks>
/// This rate may not accurately measure how much data a client is reading. This is because data is read from the application
/// until the transport's operating system buffers are full.
/// </remarks>
MinDataRate? MinDataRate { get; set; }
}
4 changes: 4 additions & 0 deletions src/Servers/Kestrel/Core/src/KestrelServerLimits.cs
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,10 @@ internal void Serialize(Utf8JsonWriter writer)
/// 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.
/// </para>
/// <para>
/// This rate may not accurately measure how much data a client is reading. This is because data is read from the application
/// until the transport's operating system buffers are full.
/// </para>
/// </remarks>
public MinDataRate? MinResponseDataRate { get; set; } =
// Matches the default IIS minBytesPerSecond
Expand Down
Loading