ChannelPoolSettings.IdleTimeout 属性
定义
获取或设置池中的通道在关闭前可空闲的最大时间间隔。Get or sets the maximum interval of time for which the channels in the pool can be idle before being closed.
public:
property TimeSpan IdleTimeout { TimeSpan get(); void set(TimeSpan value); };
public TimeSpan IdleTimeout { get; set; }
member this.IdleTimeout : TimeSpan with get, set
Public Property IdleTimeout As TimeSpan
属性值
TimeSpan,指定池中的通道在关闭前可空闲的最大时间间隔。The TimeSpan that specifies the maximum interval of time for which the channels in the pool can be idle before being closed. 默认值为 2 分钟。The default value is 2 minutes.
例外
注解
IdleTimeout 配额用于减少通过长时间占用资源来对服务器实施的拒绝服务 (DOS) 攻击。The IdleTimeout quota is used to mitigate Denial of Service (DOS) attacks on the server that rely on tying up resources for an extended period of time. 在客户端,设置正确的值可增加与服务连接的可靠性。On the client, setting the correct value can increase the reliability of connecting with the service. 默认值基于资源的保守适度分配。The default value is based on a conservatively modest allocation of resources. 该值适用于开发环境和小型安装方案。It is suitable for a development environment and small installation scenarios. 如果某个安装耗尽了资源或是连接受到限制,则无论是否还有其他资源可用,服务管理员都应检查该值。Service administrators should review the value if an installation is running out of resources or if connections are being limited despite the availability of additional resources.