KestrelServerLimits.MaxConcurrentUpgradedConnections 屬性

定義

取得或設定開啟、升級的連接數目上限。 當設定為 null 時,升級的連線數目無限制。 升級的連線是已從 HTTP 切換到另一個通訊協定的連線,例如 WebSocket。

預設值為 null。

public:
 property Nullable<long> MaxConcurrentUpgradedConnections { Nullable<long> get(); void set(Nullable<long> value); };
public long? MaxConcurrentUpgradedConnections { get; set; }
member this.MaxConcurrentUpgradedConnections : Nullable<int64> with get, set
Public Property MaxConcurrentUpgradedConnections As Nullable(Of Long)

屬性值

備註

當連線升級至另一個通訊協定時,例如 WebSockets,其連線會根據 MaxConcurrentUpgradedConnections 限制計算,而不是 MaxConcurrentConnections

適用於