From a0536566bc73368043da23077347e27f21e30bea Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Mon, 3 Jul 2023 16:21:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=85=A8=E5=B1=80=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E7=9A=84=E8=B6=85=E6=97=B6=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/nodeconfigs/node_config.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/nodeconfigs/node_config.go b/pkg/nodeconfigs/node_config.go index 2f0755d..daa916f 100644 --- a/pkg/nodeconfigs/node_config.go +++ b/pkg/nodeconfigs/node_config.go @@ -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) +} \ No newline at end of file