From a550a44a52e55f6b9637b75f497b040e1a469721 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=A5=A5=E8=B6=85?= Date: Sat, 7 Jan 2023 20:04:42 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9B=86=E7=BE=A4=E6=9C=8D=E5=8A=A1=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E5=A2=9E=E5=8A=A0=E8=87=AA=E5=8A=A8=E8=AF=BB=E8=B6=85?= =?UTF-8?q?=E6=97=B6=E9=80=89=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cluster/settings/global-server-config/index.go | 2 ++ .../cluster/settings/global-server-config/index.html | 9 ++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/internal/web/actions/default/clusters/cluster/settings/global-server-config/index.go b/internal/web/actions/default/clusters/cluster/settings/global-server-config/index.go index 0778349c..6e71b1e7 100644 --- a/internal/web/actions/default/clusters/cluster/settings/global-server-config/index.go +++ b/internal/web/actions/default/clusters/cluster/settings/global-server-config/index.go @@ -85,6 +85,7 @@ func (this *IndexAction) RunPost(params struct { LogRecordServerError bool + PerformanceAutoReadTimeout bool PerformanceAutoWriteTimeout bool PerformanceDebug bool @@ -142,6 +143,7 @@ func (this *IndexAction) RunPost(params struct { config.Log.RecordServerError = params.LogRecordServerError // 性能 + config.Performance.AutoReadTimeout = params.PerformanceAutoReadTimeout config.Performance.AutoWriteTimeout = params.PerformanceAutoWriteTimeout config.Performance.Debug = params.PerformanceDebug diff --git a/web/views/@default/clusters/cluster/settings/global-server-config/index.html b/web/views/@default/clusters/cluster/settings/global-server-config/index.html index 29965932..04ffac40 100644 --- a/web/views/@default/clusters/cluster/settings/global-server-config/index.html +++ b/web/views/@default/clusters/cluster/settings/global-server-config/index.html @@ -92,11 +92,18 @@

性能

+ + + +
自动读数据超时 + +

从客户端读取数据时自动设置超时时间,如果超时,则自动视为慢连接,并关闭网络连接;此为专业选项,请在专家指导下进行修改。

+
自动写数据超时 -

向客户端发送数据时自动设置超时时间,如果超时,则自动视为慢连接,并关闭网络连接。

+

向客户端发送数据时自动设置超时时间,如果超时,则自动视为慢连接,并关闭网络连接;此为专业选项,请在专家指导下进行修改。