Muokkaa

Jaa


ServicePointManager.ReusePort Property

Definition

Setting this property value to true causes all outbound TCP connections from HttpWebRequest to use the native socket option SO_REUSE_UNICASTPORT on the socket. This causes the underlying outgoing ports to be shared. This is useful for scenarios where a large number of outgoing connections are made in a short time, and the app risks running out of ports.

public:
 static property bool ReusePort { bool get(); void set(bool value); };
public static bool ReusePort { get; set; }
static member ReusePort : bool with get, set
Public Shared Property ReusePort As Boolean

Property Value

Returns Boolean.

Remarks

The default value is false.

Applies to