TimeoutManager.DrainEntityBody Property

Definition

The time, in seconds, allowed for the HTTP Server API to drain the entity body on a Keep-Alive connection. The default timer is 2 minutes.

On a Keep-Alive connection, after the application has sent a response for a request and before the request entity body has completely arrived, the HTTP Server API starts draining the remainder of the entity body to reach another potentially pipelined request from the client. If the time to drain the remaining entity body exceeds the allowed period the connection is timed out.

Use TimeSpan.Zero to indicate that system defaults should be used.

C#
public TimeSpan DrainEntityBody { get; set; }

Property Value

Applies to

Product Versions
ASP.NET Core 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0