优化全局设置的超时设置

This commit is contained in:
刘祥超
2023-07-03 16:21:52 +08:00
parent ea35ad2dac
commit 0b2e9fa864

View File

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