DefaultPersistentConnectionLimit Field
Collapse the table of content
Expand the table of content

ServicePointManager.DefaultPersistentConnectionLimit Field


The default number of persistent connections (2) allowed on a ServicePoint object connected to an HTTP/1.1 or later server. This field is constant and is used to initialize the DefaultConnectionLimit property if the value of the DefaultConnectionLimit property has not been set either directly or through configuration.

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

Public Const DefaultPersistentConnectionLimit As Integer

Field Value

Type: System.Int32

The following code example sets the DefaultConnectionLimit property using this field.

ServicePointManager.UseNagleAlgorithm = True
ServicePointManager.Expect100Continue = True
ServicePointManager.CheckCertificateRevocationList = True
ServicePointManager.DefaultConnectionLimit = _

.NET Framework
Available since 1.1
Return to top
© 2015 Microsoft