集群服务设置增加自动读超时选项

This commit is contained in:
GoEdgeLab
2023-01-07 20:04:42 +08:00
parent 3470f24854
commit 414a59b643
2 changed files with 10 additions and 1 deletions

View File

@@ -85,6 +85,7 @@ func (this *IndexAction) RunPost(params struct {
LogRecordServerError bool LogRecordServerError bool
PerformanceAutoReadTimeout bool
PerformanceAutoWriteTimeout bool PerformanceAutoWriteTimeout bool
PerformanceDebug bool PerformanceDebug bool
@@ -142,6 +143,7 @@ func (this *IndexAction) RunPost(params struct {
config.Log.RecordServerError = params.LogRecordServerError config.Log.RecordServerError = params.LogRecordServerError
// 性能 // 性能
config.Performance.AutoReadTimeout = params.PerformanceAutoReadTimeout
config.Performance.AutoWriteTimeout = params.PerformanceAutoWriteTimeout config.Performance.AutoWriteTimeout = params.PerformanceAutoWriteTimeout
config.Performance.Debug = params.PerformanceDebug config.Performance.Debug = params.PerformanceDebug

View File

@@ -92,11 +92,18 @@
<h4>性能</h4> <h4>性能</h4>
<table class="ui table definition selectable"> <table class="ui table definition selectable">
<tr>
<td class="title">自动读数据超时</td>
<td>
<checkbox name="performanceAutoReadTimeout" v-model="config.performance.autoReadTimeout"></checkbox>
<p class="comment">从客户端读取数据时自动设置超时时间,如果超时,则自动视为慢连接,并关闭网络连接;此为专业选项,请在专家指导下进行修改。</p>
</td>
</tr>
<tr> <tr>
<td class="title">自动写数据超时</td> <td class="title">自动写数据超时</td>
<td> <td>
<checkbox name="performanceAutoWriteTimeout" v-model="config.performance.autoWriteTimeout"></checkbox> <checkbox name="performanceAutoWriteTimeout" v-model="config.performance.autoWriteTimeout"></checkbox>
<p class="comment">向客户端发送数据时自动设置超时时间,如果超时,则自动视为慢连接,并关闭网络连接。</p> <p class="comment">向客户端发送数据时自动设置超时时间,如果超时,则自动视为慢连接,并关闭网络连接;此为专业选项,请在专家指导下进行修改</p>
</td> </td>
</tr> </tr>
<tr> <tr>