Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
DrainEntityBody Property

HttpListenerTimeoutManager::DrainEntityBody Property

.NET Framework 4.6 and 4.5

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

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

public:
property TimeSpan DrainEntityBody {
	TimeSpan get ();
	void set (TimeSpan value);
}

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.

The default value for this property is 2 minutes.

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

Supported in: 4.6, 4.5
Show:
© 2015 Microsoft