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

CosmosClientOptions.IdleTcpConnectionTimeout 属性

定义

(Direct/TCP) 控制关闭未使用连接之后的空闲时间量。

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

属性值

默认情况下,空闲连接会无限期地保持为打开状态。 值必须大于或等于 10 分钟。 建议的值介于 20 分钟到 24 小时之间。

注解

主要适用于对大型数据库帐户的稀疏访问。

适用于