Share via


你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

CosmosClientOptions.MaxTcpConnectionsPerEndpoint 属性

定义

(Direct/TCP) 控制可向每个 Cosmos DB 后端打开的最大 TCP 连接数。 此设置与 MaxRequestsPerTcpConnection 一起限制同时发送到单个 Cosmos DB 后端的请求数, (MaxRequestsPerTcpConnection x MaxTcpConnectionPerEndpoint) 。

public int? MaxTcpConnectionsPerEndpoint { get; set; }
member this.MaxTcpConnectionsPerEndpoint : Nullable<int> with get, set
Public Property MaxTcpConnectionsPerEndpoint As Nullable(Of Integer)

属性值

默认值为 65,535。 值必须大于或等于 16。

适用于