优化全局设置的超时设置

This commit is contained in:
GoEdgeLab
2023-07-03 16:21:52 +08:00
parent 4e9367c3d6
commit a0536566bc

View File

@@ -770,3 +770,8 @@ func (this *NodeConfig) FindHTTPPagesPolicyWithClusterId(clusterId int64) *HTTPP
func (this *NodeConfig) SecretHash() string {
return this.secretHash
}
// HasConnTimeoutSettings 检查是否有连接超时设置
func (this *NodeConfig) HasConnTimeoutSettings() bool {
return this.GlobalServerConfig != nil && (this.GlobalServerConfig.Performance.AutoReadTimeout || this.GlobalServerConfig.Performance.AutoWriteTimeout)
}