Gets or sets the amount of time a connection associated with the System.Net.ServicePoint object can remain idle before the connection is closed.
A int containing the number of milliseconds that a System.Net.ServicePoint can remain idle before it is released by the System.Net.ServicePointManager and subsequently freed.
Type Reason ArgumentOutOfRangeException The value specified for a set operation is less than System.Threading.Timeout.Infinite or greater than int.MaxValue.
You can set ServicePoint.MaxIdleTime to System.Threading.Timeout.Infinite to indicate that a connection associated with the System.Net.ServicePoint object should never time out.
The default value of the ServicePoint.MaxIdleTime property is the value of the ServicePointManager.MaxServicePointIdleTime property when the System.Net.ServicePoint object is created. Subsequent changes to the ServicePointManager.MaxServicePointIdleTime property have no effect on existing System.Net.ServicePoint objects.
When the ServicePoint.MaxIdleTime for a connection associated with a System.Net.ServicePoint is exceeded, the connection remains open until the application tries to use the connection. At that time, the Framework closes the connection and creates a new connection to the remote host.