Edit

Share via


HttpListenerTimeoutsElement.DrainEntityBody Property

Definition

Gets the time, in seconds, allowed for the HttpListener to drain the entity body on a Keep-Alive connection.

public:
 property TimeSpan DrainEntityBody { TimeSpan get(); };
[System.Configuration.ConfigurationProperty("drainEntityBody", DefaultValue=0, IsRequired=false)]
public TimeSpan DrainEntityBody { get; }
[<System.Configuration.ConfigurationProperty("drainEntityBody", DefaultValue=0, IsRequired=false)>]
member this.DrainEntityBody : TimeSpan
Public ReadOnly Property DrainEntityBody As TimeSpan

Property Value

The time, in seconds, allowed for the HttpListener to drain the entity body on a Keep-Alive connection.

Attributes

Remarks

On a Keep-Alive connection, after the app has sent a response for a request and before the request entity body has completely arrived, the HttpListener 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.

Applies to

See also