HttpListenerTimeoutsElement.DrainEntityBody Property

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

Namespace:   System.Net.Configuration
Assembly:  System (in System.dll)

[ConfigurationPropertyAttribute("drainEntityBody", DefaultValue = 0, 
	IsRequired = false)]
public TimeSpan DrainEntityBody { get; }

Property Value

Type: System.TimeSpan

Returns TimeSpan.

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

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.

.NET Framework
Available since 4.5
Return to top
Show: