ConnectionOrientedTransportBindingElement.ChannelInitializationTimeout 属性
定义
public:
property TimeSpan ChannelInitializationTimeout { TimeSpan get(); void set(TimeSpan value); };
public TimeSpan ChannelInitializationTimeout { get; set; }
member this.ChannelInitializationTimeout : TimeSpan with get, set
Public Property ChannelInitializationTimeout As TimeSpan
属性值
一个 TimeSpan,在其之后的通道初始化请求就会超时。A TimeSpan after which a channel initialization request times out.
注解
此属性可确定 TCP 连接使用 .NET 组帧协议对自身进行身份验证所需的时间。This property determines how long a TCP connection can take to authenticate itself using the .NET Framing protocol. 客户端需要发送一些初始数据,然后服务器才有足够的信息来执行身份验证。A client needs to send some initial data before the server has enough information to perform authentication. 此超时被有意设置为小于 ReceiveTimeout(10 分钟),这样,未经身份验证的恶意客户端就无法长时间保持绑到该服务器的连接。This timeout is intentionally made smaller than the ReceiveTimeout (10 min) so that malicious unauthenticated clients do not keep the connections tied up to the server for long. 默认值为 30 秒。The default value is 30 seconds.